]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kernel/auditfilter.c: fix leak in audit_add_rule() error path
authorChen Gang <gang.chen@asianux.com>
Wed, 19 Jun 2013 00:05:23 +0000 (10:05 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:12:40 +0000 (17:12 +1000)
commitaa33dc0512bc6bd73a086257bc75f743c1583156
tree7af8b8ac70e6d756dd61a1cebadfc272d7b64052
parentc3d1d0f8c58770dc54c48caa09edc9d01cc995dc
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 <gang.chen@asianux.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Eric Paris <eparis@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/auditfilter.c