From: Chen Gang Date: Mon, 8 Jul 2013 22:59:38 +0000 (-0700) Subject: kernel/auditfilter.c: fix leak in audit_add_rule() error path X-Git-Tag: v3.11-rc1~67^2~114 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f992ee85aaa7dfd2bda43efe4493af1e108d054;p=pandora-kernel.git kernel/auditfilter.c: fix leak in audit_add_rule() error path If both 'tree' and 'watch' are valid we must call audit_put_tree(), just like the preceding code within audit_add_rule(). Signed-off-by: Chen Gang Cc: Al Viro Cc: Eric Paris Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed