Adrian Bunk f13b83580a [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 <bunk@stusta.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-03-15 09:37:34 -08:00
..
2006-03-09 19:47:37 -08:00
2006-03-06 18:40:45 -08:00
2006-03-08 16:46:08 -08:00
2006-03-08 14:14:01 -08:00
2006-03-07 09:16:35 -08:00
2006-03-08 14:14:01 -08:00
2006-03-08 14:03:09 -08:00