linux-hardened/fs/notify/inotify
Lino Sanfilippo 8b99c3ccf7 inotify: dont skip removal of watch descriptor if creation of ignored event failed
In inotify_ignored_and_remove_idr() the removal of a watch descriptor is skipped
if the allocation of an ignored event failed and we are leaking memory (the
watch descriptor and the mark linked to it).
This patch ensures that the watch descriptor is removed regardless of whether
event creation failed or not.

Signed-off-by: Lino Sanfilippo <LinoSanfilippo@gmx.de>
Signed-off-by: Eric Paris <eparis@redhat.com>
2012-12-11 13:44:37 -05:00
..
inotify.h inotify: rename mark_entry to just mark 2010-07-28 09:58:54 -04:00
inotify_fsnotify.c fsnotify: pass group to fsnotify_destroy_mark() 2012-12-11 13:44:36 -05:00
inotify_user.c inotify: dont skip removal of watch descriptor if creation of ignored event failed 2012-12-11 13:44:37 -05:00
Kconfig inotify: remove inotify in kernel interface 2010-07-28 09:58:31 -04:00
Makefile inotify: remove inotify in kernel interface 2010-07-28 09:58:31 -04:00