Commit d25cb934 authored by Robert Love's avatar Robert Love Committed by Linus Torvalds

[PATCH] inotify: add missing hook to sys32_open

Add missing fsnotify_open() hook to sys32_open().

Add fsnotify_open() hook to sys32_open() on x86-64.
Signed-off-by: default avatarRobert Love <rml@novell.com>
Signed-off-by: default avatarJohn McCutchan <ttb@tentacle.dhs.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent e5ca844a
...@@ -61,6 +61,7 @@ ...@@ -61,6 +61,7 @@
#include <linux/ptrace.h> #include <linux/ptrace.h>
#include <linux/highuid.h> #include <linux/highuid.h>
#include <linux/vmalloc.h> #include <linux/vmalloc.h>
#include <linux/fsnotify.>
#include <asm/mman.h> #include <asm/mman.h>
#include <asm/types.h> #include <asm/types.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
...@@ -984,9 +985,11 @@ asmlinkage long sys32_open(const char __user * filename, int flags, int mode) ...@@ -984,9 +985,11 @@ asmlinkage long sys32_open(const char __user * filename, int flags, int mode)
if (IS_ERR(f)) { if (IS_ERR(f)) {
put_unused_fd(fd); put_unused_fd(fd);
fd = error; fd = error;
} else } else {
fsnotify_open(f->f_dentry);
fd_install(fd, f); fd_install(fd, f);
} }
}
putname(tmp); putname(tmp);
} }
return fd; return fd;
......
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