From: Jan Kara Date: Thu, 3 Apr 2014 21:46:32 +0000 (-0700) Subject: fanotify: remove useless bypass_perm check X-Git-Tag: v3.15-rc1~106^2~226 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3298cf37bee59c66a51da0cea8bae0d0418e27fd;p=pandora-kernel.git fanotify: remove useless bypass_perm check The prepare_for_access_response() function checks whether group->fanotify_data.bypass_perm is set. However this test can never be true because prepare_for_access_response() is called only from fanotify_read() which means fanotify group is alive with an active fd while bypass_perm is set from fanotify_release() when all file descriptors pointing to the group are closed and the group is going away. Signed-off-by: Jan Kara Cc: Eric Paris Cc: Al Viro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed