Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83207
b: refs/heads/master
c: 00a905e
h: refs/heads/master
i:
  83205: 7ab6500
  83203: 5f7e980
  83199: c9fbca1
v: v3
  • Loading branch information
Jeff Dike authored and Linus Torvalds committed Feb 5, 2008
1 parent 9411c95 commit ee9bb4d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1aa351a308d2c3ddb92b6cc45083fc54271d0010
refs/heads/master: 00a905e6145ba200308a6a13e00248b85c600bd0
14 changes: 13 additions & 1 deletion trunk/arch/um/kernel/skas/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,20 @@ void destroy_context(struct mm_struct *mm)

if (proc_mm)
os_close_file(mmu->id.u.mm_fd);
else
else {
/*
* If init_new_context wasn't called, this will be
* zero, resulting in a kill(0), which will result in the
* whole UML suddenly dying. Also, cover negative and
* 1 cases, since they shouldn't happen either.
*/
if (mmu->id.u.pid < 2) {
printk(KERN_ERR "corrupt mm_context - pid = %d\n",
mmu->id.u.pid);
return;
}
os_kill_ptraced_process(mmu->id.u.pid, 1);
}

if (skas_needs_stub)
free_page(mmu->id.stack);
Expand Down

0 comments on commit ee9bb4d

Please sign in to comment.