mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
kernel/nsproxy.c: Improving a snippet of code.
It seems GCC generates a better code in that way, so I changed that statement. Btw, they have the same semantic, so I'm sending this patch due to performance issues. Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> Signed-off-by: Raphael S.Carvalho <raphael.scarv@gmail.com> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
This commit is contained in:
parent
aee1c13dd0
commit
21e851943e
@ -148,7 +148,8 @@ int copy_namespaces(unsigned long flags, struct task_struct *tsk)
|
||||
* means share undolist with parent, so we must forbid using
|
||||
* it along with CLONE_NEWIPC.
|
||||
*/
|
||||
if ((flags & CLONE_NEWIPC) && (flags & CLONE_SYSVSEM)) {
|
||||
if ((flags & (CLONE_NEWIPC | CLONE_SYSVSEM)) ==
|
||||
(CLONE_NEWIPC | CLONE_SYSVSEM)) {
|
||||
err = -EINVAL;
|
||||
goto out;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user