git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
uml: kill processes instead of panicing kernel
[safe/jmp/linux-2.6]
/
arch
/
um
/
kernel
/
skas
/
mmu.c
diff --git
a/arch/um/kernel/skas/mmu.c
b/arch/um/kernel/skas/mmu.c
index
b56fe8b
..
6da9ab4
100644
(file)
--- a/
arch/um/kernel/skas/mmu.c
+++ b/
arch/um/kernel/skas/mmu.c
@@
-114,6
+114,11
@@
int init_new_context(struct task_struct *task, struct mm_struct *mm)
to_mm->id.u.pid = copy_context_skas0(stack,
from_mm->id.u.pid);
else to_mm->id.u.pid = start_userspace(stack);
+
+ if (to_mm->id.u.pid < 0) {
+ ret = to_mm->id.u.pid;
+ goto out_free;
+ }
}
ret = init_new_ldt(to_mm, from_mm);