From: Adrian Bunk Date: Wed, 15 Mar 2006 16:37:32 +0000 (+0100) Subject: [PATCH] fs/namespace.c:dup_namespace(): fix a use after free X-Git-Tag: v2.6.16~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f13b83580acef03a36c785dccc534ccdd7e43084;p=pandora-kernel.git [PATCH] fs/namespace.c:dup_namespace(): fix a use after free The Coverity checker spotted the following bug in dup_namespace(): <-- snip --> if (!new_ns->root) { up_write(&namespace_sem); kfree(new_ns); goto out; } ... out: return new_ns; <-- snip --> Callers expect a non-NULL result to not be freed. Signed-off-by: Adrian Bunk Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed