]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
kernel/user.c: fix a memory leak when freeing up non-init usernamespaces users
authorDhaval Giani <dhaval@linux.vnet.ibm.com>
Tue, 10 Mar 2009 19:55:56 +0000 (12:55 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 10 Mar 2009 22:55:11 +0000 (15:55 -0700)
commitbe50b8342dead8cacf57d4839240106b225d31f5
treea5f40b583e4c008313b090426fa785d178348e76
parentd58ab5cf09679d8cb4824e22cae900c0eab5ab31
kernel/user.c: fix a memory leak when freeing up non-init usernamespaces users

We were returning early in the sysfs directory cleanup function if the
user belonged to a non init usernamespace.  Due to this a lot of the
cleanup was not done and we were left with a leak.  Fix the leak.

Reported-by: Serge Hallyn <serue@linux.vnet.ibm.com>
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Tested-by: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/user.c