Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309752
b: refs/heads/master
c: 137d1a2
h: refs/heads/master
v: v3
  • Loading branch information
Anton Vorontsov authored and Linus Torvalds committed Jun 1, 2012
1 parent ab126ea commit 817bf07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: 9bd0a077122a6b15069aab7a59c8f50f736fa1dd
refs/heads/master: 137d1a26c842a384c98dd2a6a605014fddf5c777
7 changes: 5 additions & 2 deletions trunk/arch/um/kernel/reboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@ static void kill_off_processes(void)

read_lock(&tasklist_lock);
for_each_process(p) {
if (p->mm == NULL)
task_lock(p);
if (!p->mm) {
task_unlock(p);
continue;

}
pid = p->mm->context.id.u.pid;
task_unlock(p);
os_kill_ptraced_process(pid, 1);
}
read_unlock(&tasklist_lock);
Expand Down

0 comments on commit 817bf07

Please sign in to comment.