patch-2.3.43 linux/kernel/exec_domain.c
Next file: linux/kernel/exit.c
Previous file: linux/kernel/Makefile
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Thu Feb 10 12:41:10 2000
- Orig file:
v2.3.42/linux/kernel/exec_domain.c
- Orig date:
Mon Nov 1 13:56:27 1999
diff -u --recursive --new-file v2.3.42/linux/kernel/exec_domain.c linux/kernel/exec_domain.c
@@ -103,12 +103,11 @@
unsigned long old_personality;
int ret;
- lock_kernel();
- ret = current->personality;
if (personality == 0xffffffff)
- goto out;
+ return current->personality;
ret = -EINVAL;
+ lock_kernel();
it = lookup_exec_domain(personality);
if (!it)
goto out;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)