audit: clean up refcounting in audit-tree
authorMiklos Szeredi <mszeredi@suse.cz>
Wed, 15 Aug 2012 10:55:22 +0000 (12:55 +0200)
committerMiklos Szeredi <mszeredi@suse.cz>
Wed, 15 Aug 2012 10:55:22 +0000 (12:55 +0200)
commitb3e8692b4dde5cf5fc60e4b95385229a72623182
tree5145a92e403b7faa54ac47b24d0791ca9c6c01bc
parenta2140fc0cb0325bb6384e788edd27b9a568714e2
audit: clean up refcounting in audit-tree

Drop the initial reference by fsnotify_init_mark early instead of
audit_tree_freeing_mark() at destroy time.

In the cases we destroy the mark before we drop the initial reference we need to
get rid of the get_mark that balances the put_mark in audit_tree_freeing_mark().

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
kernel/audit_tree.c