commit | eef3a116be11d35396efb2a8cc7345fd3221e294 | [log] [tgz] |
---|---|---|
author | Eric Paris <eparis@redhat.com> | Sun Aug 16 21:51:44 2009 -0400 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Mon Aug 17 13:37:37 2009 -0700 |
tree | 2a5d0b36dd5985f29eac43f51b03e610e40b7c9b | |
parent | 0f66f96d21b4bbff49baaa337546e687d7c58e87 [diff] |
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 <eparis@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>