From: Jean-Christophe Dubois Date: Tue, 23 Mar 2010 07:08:09 +0000 (+0100) Subject: fanotify: do not always return 0 in fsnotify X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=98b5c10d320adfa250c1c18f3ccaec2f78e5e11d;p=deliverable%2Flinux.git 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 Signed-off-by: Eric Paris --- 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: if (event) fsnotify_put_event(event); - return 0; + return ret; } EXPORT_SYMBOL_GPL(fsnotify);