From: Lino Sanfilippo Date: Sat, 24 Mar 2012 22:44:19 +0000 (+0100) Subject: inotify: dont skip removal of watch descriptor if creation of ignored event failed X-Git-Tag: v3.8-rc1~11^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b99c3ccf735a2294c7842d236caa42e543e2c95;p=pandora-kernel.git 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 Signed-off-by: Eric Paris --- Reading git-diff-tree failed