bugfix: nullify kfreed pointer so it doesn't get double freed
authorYiannis Pericleous <yiannos@agora2.fsl.cs.sunysb.edu>
Wed, 30 May 2007 23:20:55 +0000 (19:20 -0400)
committerRachita Kothiyal <rachita@dewey.fsl.cs.sunysb.edu>
Thu, 1 May 2008 23:02:46 +0000 (19:02 -0400)
fs/unionfs/odf.c

index 72f0ee9e606c921c885b8e0eef55d749e486814d..4052798a2ab482ad86d1177bc7bbb758dedb4baa 100644 (file)
@@ -350,6 +350,7 @@ int odf_parse_options(const char *options, char **odf_path)
 out_error:
        if (odf)
                kfree(*odf_path);
+       *odf_path = NULL;
 out:
        kfree(tmp_options);
        return err;