Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] inotify: fix oops fix

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>

authored by

Andrew Morton and committed by
Linus Torvalds
89373de7 725b38ab

+1 -1
+1 -1
fs/inotify.c
··· 1032 1032 panic("inotify: register_filesystem returned %d!\n", ret); 1033 1033 1034 1034 inotify_mnt = kern_mount(&inotify_fs_type); 1035 - if (unlikely(PTR_ERR(inotify_mnt))) 1035 + if (IS_ERR(inotify_mnt)) 1036 1036 panic("inotify: kern_mount ret %ld!\n", PTR_ERR(inotify_mnt)); 1037 1037 1038 1038 inotify_max_queued_events = 16384;