summaryrefslogtreecommitdiff
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <greg@kroah.com>2002-11-26 23:13:40 -0800
committerGreg Kroah-Hartman <greg@kroah.com>2002-11-26 23:13:40 -0800
commit62561c77758d728aa6af8994efaf81273e0d93ec (patch)
tree1e0bd5fe092bbc1218914255877ba913152698f0 /kernel/fork.c
parentc0315f4b7db901069c97007f1d275bae1c069af8 (diff)
LSM: change if statements into something more readable for the kernel.* files.
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 3ae5525863af..f1ec2c2d2fe0 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -717,7 +717,8 @@ static struct task_struct *copy_process(unsigned long clone_flags,
if ((clone_flags & CLONE_DETACHED) && !(clone_flags & CLONE_THREAD))
return ERR_PTR(-EINVAL);
- if ((retval = security_task_create(clone_flags)))
+ retval = security_task_create(clone_flags);
+ if (retval)
goto fork_out;
retval = -ENOMEM;