提交 98b5c10d 编写于 作者: J Jean-Christophe Dubois 提交者: Eric Paris

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: NJean-Christophe DUBOIS <jcd@tribudubois.net>
Signed-off-by: NEric Paris <eparis@redhat.com>
上级 8860f060
......@@ -269,7 +269,7 @@ int fsnotify(struct inode *to_tell, __u32 mask, void *data, int data_is,
if (event)
fsnotify_put_event(event);
return 0;
return ret;
}
EXPORT_SYMBOL_GPL(fsnotify);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册