aboutsummaryrefslogtreecommitdiffstats
path: root/fs/notify
diff options
context:
space:
mode:
authorJean-Christophe Dubois <jcd@tribudubois.net>2010-03-23 03:08:09 -0400
committerEric Paris <eparis@redhat.com>2010-07-28 09:59:02 -0400
commit98b5c10d320adfa250c1c18f3ccaec2f78e5e11d (patch)
tree7ca8ca16bea8b514cd416fddb012108e8b74e83a /fs/notify
parent8860f060e473dce1a0873d92105d536f72b05908 (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')
-rw-r--r--fs/notify/fsnotify.c2
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}
274EXPORT_SYMBOL_GPL(fsnotify); 274EXPORT_SYMBOL_GPL(fsnotify);
275 275