mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
[PATCH] inotify: check retval in init
Check for (unlikely) errors in the filesystem initialization stuff in our module_init() function. Signed-off-by: Robert Love <rml@novell.com> Signed-off-by: John McCutchan <ttb@tentacle.dhs.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
1b2ccf0cc1
commit
e5ca844a9d
1 changed files with 8 additions and 1 deletions
|
@ -1025,8 +1025,15 @@ static struct file_system_type inotify_fs_type = {
|
||||||
*/
|
*/
|
||||||
static int __init inotify_setup(void)
|
static int __init inotify_setup(void)
|
||||||
{
|
{
|
||||||
register_filesystem(&inotify_fs_type);
|
int ret;
|
||||||
|
|
||||||
|
ret = register_filesystem(&inotify_fs_type);
|
||||||
|
if (unlikely(ret))
|
||||||
|
panic("inotify: register_filesystem returned %d!\n", ret);
|
||||||
|
|
||||||
inotify_mnt = kern_mount(&inotify_fs_type);
|
inotify_mnt = kern_mount(&inotify_fs_type);
|
||||||
|
if (unlikely(PTR_ERR(inotify_mnt)))
|
||||||
|
panic("inotify: kern_mount ret %ld!\n", PTR_ERR(inotify_mnt));
|
||||||
|
|
||||||
inotify_max_queued_events = 16384;
|
inotify_max_queued_events = 16384;
|
||||||
inotify_max_user_instances = 128;
|
inotify_max_user_instances = 128;
|
||||||
|
|
Loading…
Reference in a new issue