audit: don't free_chunk() after fsnotify_add_mark()
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)
commit0fe33aae0e94b4097dd433c9399e16e17d638cd8
tree799d8107cc7b000c1fba87f87b59cb6d467dc9a2
parentddf343f635fe4440cad528e12f96f28bd50aa099
audit: don't free_chunk() after fsnotify_add_mark()

Don't do free_chunk() after fsnotify_add_mark().  That one does a delayed unref
via the destroy list and this results in use-after-free.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Acked-by: Eric Paris <eparis@redhat.com>
CC: stable@vger.kernel.org
kernel/audit_tree.c