diff options
author | Lino Sanfilippo <LinoSanfilippo@gmx.de> | 2012-03-24 23:44:19 +0100 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2012-12-11 19:44:37 +0100 |
commit | 8b99c3ccf735a2294c7842d236caa42e543e2c95 (patch) | |
tree | c111247a941553f858975a348541fb50d1de5e9f /include/Kbuild | |
parent | fanotify: dont merge permission events (diff) | |
download | linux-8b99c3ccf735a2294c7842d236caa42e543e2c95.tar.xz linux-8b99c3ccf735a2294c7842d236caa42e543e2c95.zip |
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>
Diffstat (limited to 'include/Kbuild')
0 files changed, 0 insertions, 0 deletions