fanotify: do not always return 0 in fsnotify
Jean-Christophe Dubois [Tue, 23 Mar 2010 07:08:09 +0000 (08:08 +0100)]
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>

fs/notify/fsnotify.c

index 6682686..9810bab 100644 (file)
@@ -269,7 +269,7 @@ out:
        if (event)
                fsnotify_put_event(event);
 
-       return 0;
+       return ret;
 }
 EXPORT_SYMBOL_GPL(fsnotify);