瀏覽代碼

[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>
Andrew Morton 20 年之前
父節點
當前提交
89373de7dd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      fs/inotify.c

+ 1 - 1
fs/inotify.c

@@ -1032,7 +1032,7 @@ static int __init inotify_setup(void)
 		panic("inotify: register_filesystem returned %d!\n", 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)))
+	if (IS_ERR(inotify_mnt))
 		panic("inotify: kern_mount ret %ld!\n", 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;