diff options
-rw-r--r-- | ipc/namespace.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ipc/namespace.c b/ipc/namespace.c index 4a5e752a9276..a56fc598a807 100644 --- a/ipc/namespace.c +++ b/ipc/namespace.c | |||
@@ -50,15 +50,11 @@ struct ipc_namespace *copy_ipcs(unsigned long flags, struct ipc_namespace *ns) | |||
50 | { | 50 | { |
51 | struct ipc_namespace *new_ns; | 51 | struct ipc_namespace *new_ns; |
52 | 52 | ||
53 | BUG_ON(!ns); | ||
54 | get_ipc_ns(ns); | ||
55 | |||
56 | if (!(flags & CLONE_NEWIPC)) | 53 | if (!(flags & CLONE_NEWIPC)) |
57 | return ns; | 54 | return get_ipc_ns(ns); |
58 | 55 | ||
59 | new_ns = clone_ipc_ns(ns); | 56 | new_ns = clone_ipc_ns(ns); |
60 | 57 | ||
61 | put_ipc_ns(ns); | ||
62 | return new_ns; | 58 | return new_ns; |
63 | } | 59 | } |
64 | 60 | ||