From: Eric Paris Date: Mon, 17 Aug 2009 01:51:44 +0000 (-0400) Subject: notify: unused event private race X-Git-Tag: v2.6.31-rc7~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eef3a116be11d35396efb2a8cc7345fd3221e294;p=pandora-kernel.git notify: unused event private race inotify decides if private data it passed to get added to an event was used by checking list_empty(). But it's possible that the event may have been dequeued and the private event removed so it would look empty. The fix is to use the return code from fsnotify_add_notify_event rather than looking at the list. Signed-off-by: Eric Paris Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed