From: pmeda@akamai.com
To: akpm@osdl.org
Cc: linux-mm@kvack.org
Subject: [PATCH] sysfs: mount error path cleanup
Date: Sun, 13 Mar 2005 03:07:31 -0800 [thread overview]
Message-ID: <200503131107.DAA07271@allur.sanmateo.akamai.com> (raw)
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>
reply other threads:[~2005-03-13 10:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200503131107.DAA07271@allur.sanmateo.akamai.com \
--to=pmeda@akamai.com \
--cc=akpm@osdl.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox