projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c2a7e7
)
ipcns: remove useless get/put while CLONE_NEWIPC
author
Alexey Dobriyan
<
[email protected]
>
Wed, 17 Jun 2009 23:27:54 +0000
(16:27 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 18 Jun 2009 20:03:55 +0000
(13:03 -0700)
copy_ipcs() doesn't actually copy anything. If new ipcns is created, it's
created from scratch, in this case get/put on old ipcns isn't needed.
Signed-off-by: Alexey Dobriyan <
[email protected]
>
Acked-by: Serge Hallyn <
[email protected]
>
Reviewed-by: WANG Cong <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
ipc/namespace.c
patch
|
blob
|
history
diff --git
a/ipc/namespace.c
b/ipc/namespace.c
index 4a5e752a92766d6e578c5c94499bdd71e60cbaf5..a56fc598a8071e7ca5c784e35d22c40f00d5e1f7 100644
(file)
--- a/
ipc/namespace.c
+++ b/
ipc/namespace.c
@@
-50,15
+50,11
@@
struct ipc_namespace *copy_ipcs(unsigned long flags, struct ipc_namespace *ns)
{
struct ipc_namespace *new_ns;
- BUG_ON(!ns);
- get_ipc_ns(ns);
-
if (!(flags & CLONE_NEWIPC))
- return
ns
;
+ return
get_ipc_ns(ns)
;
new_ns = clone_ipc_ns(ns);
- put_ipc_ns(ns);
return new_ns;
}