* [PATCH] sysfs: mount error path cleanup
@ 2005-03-13 11:07 pmeda
0 siblings, 0 replies; only message in thread
From: pmeda @ 2005-03-13 11:07 UTC (permalink / raw)
To: akpm; +Cc: linux-mm
Sysfs mount error path sanity work. Perhaps we can panic here, but
did not want to disturb the code here.
Signed-off-by: Prasanna Meda <pmeda@akamai.com>
--- Linux/fs/sysfs/mount.c Sun Mar 13 10:44:08 2005
+++ linux/fs/sysfs/mount.c Sun Mar 13 10:45:25 2005
@@ -93,6 +93,7 @@
printk(KERN_ERR "sysfs: could not mount!\n");
err = PTR_ERR(sysfs_mount);
sysfs_mount = NULL;
+ unregister_filesystem(&sysfs_fs_type);
goto out_err;
}
} else
@@ -101,5 +102,6 @@
return err;
out_err:
kmem_cache_destroy(sysfs_dir_cachep);
+ sysfs_dir_cachep = NULL;
goto out;
}
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-03-13 10:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-13 11:07 [PATCH] sysfs: mount error path cleanup pmeda
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox