]> 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>
Fri, 7 Jun 2013 00:07:12 +0000 (10:07 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Jun 2013 05:41:50 +0000 (15:41 +1000)
commit89393df0eecc0a04a1356092f977640a4b337d65
tree755398658d5adf5f7cf4880112a4c486c7d36174
parent1272c896dbbf7bcb5f849a36eaf2f5ce015372b2
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