X-Git-Url: http://git.onelab.eu/?p=linux-2.6.git;a=blobdiff_plain;f=fs%2Fsysfs%2Fmount.c;h=95d8229b7e5837c24b7ad522607bad48480e1a72;hp=1fe30ee7b1b42b48ee51bad256f9399b4e701c62;hb=f7f1b0f1e2fbadeab12d24236000e778aa9b1ead;hpb=e3f6fb6212a7102bdb56ba38fa1e98fe72950475 diff --git a/fs/sysfs/mount.c b/fs/sysfs/mount.c index 1fe30ee7b..95d8229b7 100644 --- a/fs/sysfs/mount.c +++ b/fs/sysfs/mount.c @@ -91,6 +91,7 @@ int __init sysfs_init(void) 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 @@ -99,5 +100,6 @@ out: return err; out_err: kmem_cache_destroy(sysfs_dir_cachep); + sysfs_dir_cachep = NULL; goto out; }