From: Dhaval Giani Date: Tue, 10 Mar 2009 19:55:56 +0000 (-0700) Subject: kernel/user.c: fix a memory leak when freeing up non-init usernamespaces users X-Git-Tag: v2.6.29-rc8~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be50b8342dead8cacf57d4839240106b225d31f5;p=pandora-kernel.git 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 Signed-off-by: Dhaval Giani Acked-by: Serge Hallyn Tested-by: Serge Hallyn Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed