Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 16889
b: refs/heads/master
c: 2d89c92
h: refs/heads/master
i:
  16887: b6e7b66
v: v3
  • Loading branch information
Paul E. McKenney authored and Linus Torvalds committed Jan 9, 2006
1 parent f52b86a commit aa4be30
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 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: e56d090310d7625ecb43a1eeebd479f04affb48b
refs/heads/master: 2d89c929078588aa9b9c674ef03ee9aa816b59b8
11 changes: 6 additions & 5 deletions trunk/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1102,18 +1102,19 @@ int group_send_sig_info(int sig, struct siginfo *info, struct task_struct *p)

retry:
ret = check_kill_permission(sig, info, p);
if (!ret && sig && (sp = p->sighand)) {
if (!get_task_struct_rcu(p))
return -ESRCH;
if (!ret && sig && (sp = rcu_dereference(p->sighand))) {
spin_lock_irqsave(&sp->siglock, flags);
if (p->sighand != sp) {
spin_unlock_irqrestore(&sp->siglock, flags);
put_task_struct(p);
goto retry;
}
if ((atomic_read(&sp->count) == 0) ||
(atomic_read(&p->usage) == 0)) {
spin_unlock_irqrestore(&sp->siglock, flags);
return -ESRCH;
}
ret = __group_send_sig_info(sig, info, p);
spin_unlock_irqrestore(&sp->siglock, flags);
put_task_struct(p);
}

return ret;
Expand Down

0 comments on commit aa4be30

Please sign in to comment.