Explorar o código

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>
Jean-Christophe Dubois %!s(int64=15) %!d(string=hai) anos
pai
achega
98b5c10d32
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      fs/notify/fsnotify.c

+ 1 - 1
fs/notify/fsnotify.c

@@ -269,7 +269,7 @@ out:
 	if (event)
 		fsnotify_put_event(event);
 
-	return 0;
+	return ret;
 }
 EXPORT_SYMBOL_GPL(fsnotify);