]> 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>
Thu, 27 Jun 2013 23:50:50 +0000 (09:50 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:09 +0000 (16:37 +1000)
commit363a2f01ebbb619b1fd29ce6acd8df1810c080a5
tree432ec3c047ad60f9f22fdf705e0d1be7c43d57e1
parentcac559d14d9ba50c517583037b5be888cdaf34e5
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