]> git.baikalelectronics.ru Git - kernel.git/commit
inotify: don't leak user struct on inotify release
authorPavel Emelyanov <xemul@openvz.org>
Wed, 12 May 2010 22:34:07 +0000 (15:34 -0700)
committerEric Paris <eparis@redhat.com>
Fri, 14 May 2010 15:53:36 +0000 (11:53 -0400)
commitd504df6448376baf6120f4c688bd21df0d919a03
treedb803231178ae41f21240017a3119dea3a4d3589
parent588bc0b4b78504894c0c3e891b7834fef4060fbd
inotify: don't leak user struct on inotify release

inotify_new_group() receives a get_uid-ed user_struct and saves the
reference on group->inotify_data.user.  The problem is that free_uid() is
never called on it.

Issue seem to be introduced by 0541c5dc (inotify: reimplement inotify
using fsnotify) after 2.6.30.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Eric Paris <eparis@parisplace.org>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Eric Paris <eparis@redhat.com>
fs/notify/inotify/inotify_fsnotify.c