mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-17 12:34:01 +00:00
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>
This commit is contained in:
parent
8860f060e4
commit
98b5c10d32
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,7 @@ out:
|
|||
if (event)
|
||||
fsnotify_put_event(event);
|
||||
|
||||
return 0;
|
||||
return ret;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(fsnotify);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue