[PATCH] inotify: fix oops fix
Andrew Morton [Tue, 26 Jul 2005 21:08:38 +0000 (14:08 -0700)]
Cc: Robert Love <rml@novell.com>
Cc: John McCutchan <ttb@tentacle.dhs.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

fs/inotify.c

index cdfff90..a8a714e 100644 (file)
@@ -1032,7 +1032,7 @@ static int __init inotify_setup(void)
                panic("inotify: register_filesystem returned %d!\n", ret);
 
        inotify_mnt = kern_mount(&inotify_fs_type);
-       if (unlikely(PTR_ERR(inotify_mnt)))
+       if (IS_ERR(inotify_mnt))
                panic("inotify: kern_mount ret %ld!\n", PTR_ERR(inotify_mnt));
 
        inotify_max_queued_events = 16384;