Commit e5ca844a authored by Robert Love's avatar Robert Love Committed by Linus Torvalds
Browse files

[PATCH] inotify: check retval in init

Check for (unlikely) errors in the filesystem initialization stuff in
our module_init() function.
Signed-off-by: default avatarRobert Love <>
Signed-off-by: default avatarJohn McCutchan <>
Signed-off-by: default avatarLinus Torvalds <>
parent 1b2ccf0c
......@@ -1025,8 +1025,15 @@ static struct file_system_type inotify_fs_type = {
static int __init inotify_setup(void)
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);
if (unlikely(PTR_ERR(inotify_mnt)))
panic("inotify: kern_mount ret %ld!\n", PTR_ERR(inotify_mnt));
inotify_max_queued_events = 16384;
inotify_max_user_instances = 128;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment