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-01-11 18:42:13 -08:00
2006-01-14 18:25:19 -08:00
2006-02-17 13:59:26 -08:00
2006-01-18 19:20:23 -08:00
2006-03-09 19:47:37 -08:00
2006-03-06 18:40:45 -08:00
2006-02-01 08:53:09 -08:00
2006-01-11 18:42:13 -08:00
2006-02-03 08:32:04 -08:00
2006-01-08 20:13:48 -08:00
2006-01-11 18:42:13 -08:00
2006-01-10 08:01:25 -08:00
2006-01-31 15:24:34 +01:00
2006-03-08 16:46:08 -08:00
2006-02-17 13:59:28 -08:00
2006-03-08 14:14:01 -08:00
2006-01-11 18:42:13 -08:00
2006-01-11 18:42:13 -08:00
2006-01-08 20:12:40 -08:00
2006-03-07 09:16:35 -08:00
2006-03-08 14:14:01 -08:00
2006-01-11 18:42:13 -08:00
2006-01-11 18:42:13 -08:00
2006-02-03 08:32:11 -08:00
2006-01-18 19:20:30 -08:00
2006-01-18 19:20:29 -08:00
2006-03-08 14:03:09 -08:00
2006-01-08 20:13:56 -08:00
2006-01-11 18:42:13 -08:00
2006-02-17 13:59:28 -08:00
2006-02-11 21:41:10 -08:00
2006-02-22 09:39:02 -08:00