diff options
author | Jean-Christophe Dubois <jcd@tribudubois.net> | 2010-03-23 03:08:09 -0400 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2010-07-28 09:59:02 -0400 |
commit | 98b5c10d320adfa250c1c18f3ccaec2f78e5e11d (patch) | |
tree | 7ca8ca16bea8b514cd416fddb012108e8b74e83a /fs/notify/fsnotify.c | |
parent | 8860f060e473dce1a0873d92105d536f72b05908 (diff) |
fanotify: do not always return 0 in fsnotify
It seems to me you are always returning 0 in fsnotify, when you should return
the error (EPERM) returned by fanotify.
Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net>
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'fs/notify/fsnotify.c')
-rw-r--r-- | fs/notify/fsnotify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/notify/fsnotify.c b/fs/notify/fsnotify.c index 668268627894..9810babb1a3b 100644 --- a/fs/notify/fsnotify.c +++ b/fs/notify/fsnotify.c | |||
@@ -269,7 +269,7 @@ out: | |||
269 | if (event) | 269 | if (event) |
270 | fsnotify_put_event(event); | 270 | fsnotify_put_event(event); |
271 | 271 | ||
272 | return 0; | 272 | return ret; |
273 | } | 273 | } |
274 | EXPORT_SYMBOL_GPL(fsnotify); | 274 | EXPORT_SYMBOL_GPL(fsnotify); |
275 | 275 | ||