public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1 linux-next] fanotify: fix a lock in fanotify_should_send_event()
@ 2015-03-20 20:56 Fabian Frederick
  2015-03-20 21:09 ` Andrew Morton
  2015-03-21  0:56 ` Lino Sanfilippo
  0 siblings, 2 replies; 9+ messages in thread
From: Fabian Frederick @ 2015-03-20 20:56 UTC (permalink / raw)
  To: linux-kernel
  Cc: Andrew Morton, Jan Kara, David Howells, Lino Sanfilippo,
	Fabian Frederick, Eric Paris

ltp/fanotify02 was locked since commit 66ba93c0d7fe
("fanotify: don't set FAN_ONDIR implicitly on a marks ignored mask")

Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
 fs/notify/fanotify/fanotify.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/notify/fanotify/fanotify.c b/fs/notify/fanotify/fanotify.c
index d2f97ec..7b3a50b 100644
--- a/fs/notify/fanotify/fanotify.c
+++ b/fs/notify/fanotify/fanotify.c
@@ -140,8 +140,8 @@ static bool fanotify_should_send_event(struct fsnotify_mark *inode_mark,
 	}
 
 	if (d_is_dir(path->dentry) &&
-	    !(marks_mask & FS_ISDIR & ~marks_ignored_mask))
-		return false;
+	    (marks_mask & FS_ISDIR & ~marks_ignored_mask))
+		return true;
 
 	if (event_mask & FAN_ALL_OUTGOING_EVENTS & marks_mask &
 				 ~marks_ignored_mask)
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-04-01  9:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-20 20:56 [PATCH 1/1 linux-next] fanotify: fix a lock in fanotify_should_send_event() Fabian Frederick
2015-03-20 21:09 ` Andrew Morton
2015-03-20 21:16   ` Fabian Frederick
2015-03-21  1:01   ` Lino Sanfilippo
2015-03-21  1:15     ` Lino Sanfilippo
2015-03-22  9:46       ` Fabian Frederick
2015-03-22 10:48         ` Lino Sanfilippo
2015-04-01  8:59           ` Jan Kara
2015-03-21  0:56 ` Lino Sanfilippo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox