]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf9710b2ba6c937dd3c74cccf542b7c0a4c19fe59
tree5145a92e403b7faa54ac47b24d0791ca9c6c01bc
parent164e4548a381f2097b8922621d65a7d3e0a2ba65
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