From: Heinrich Schuchardt Date: Wed, 4 Jun 2014 23:05:43 +0000 (-0700) Subject: fs/notify/fanotify/fanotify_user.c: fix FAN_MARK_FLUSH flag checking X-Git-Tag: omap-for-v3.16/fixes-against-rc1~56^2~16^2~264 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc299a98eb13a9853675a9cbb90b30b4011e1406;p=pandora-kernel.git fs/notify/fanotify/fanotify_user.c: fix FAN_MARK_FLUSH flag checking If fanotify_mark is called with illegal value of arguments flags and marks it usually returns EINVAL. When fanotify_mark is called with FAN_MARK_FLUSH the argument flags is not checked for irrelevant flags like FAN_MARK_IGNORED_MASK. The patch removes this inconsistency. If an irrelevant flag is set error EINVAL is returned. Signed-off-by: Heinrich Schuchardt Acked-by: Michael Kerrisk Acked-by: Jan Kara Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed