]> git.baikalelectronics.ru Git - kernel.git/commit
audit: incorrect ref counting in audit tree tag_chunk
authorEric Paris <eparis@redhat.com>
Tue, 13 Jan 2009 22:32:40 +0000 (17:32 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 5 Apr 2009 17:48:26 +0000 (13:48 -0400)
commit8519c8d1149891e85e62b093515cc91713be3ddd
treebdf1d75e26b1dc5ea4db67c6061f444c26eb9799
parent8eb780a09acf919d909765e49db1e8e371e39c5b
audit: incorrect ref counting in audit tree tag_chunk

tag_chunk has bad exit paths in which the inotify ref counting is wrong.
At the top of the function we found &old_watch using  inotify_find_watch().
inotify_find_watch takes a reference to the watch.  This is never dropped
on an error path.

Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
kernel/audit_tree.c