Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56775
b: refs/heads/master
c: 6ae3848
h: refs/heads/master
i:
  56773: 1016184
  56771: 388bf15
  56767: 4e9a18d
v: v3
  • Loading branch information
Robin Holt authored and Tony Luck committed May 22, 2007
1 parent cea6b90 commit 4ebe7b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e2e6fe7bb6e30621ad4e8a3acb1e711815c239bd
refs/heads/master: 6ae384884d936cb39ab20238af34689933e44525
5 changes: 5 additions & 0 deletions trunk/arch/ia64/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,9 @@ get_wchan (struct task_struct *p)
unsigned long ip;
int count = 0;

if (!p || p == current || p->state == TASK_RUNNING)
return 0;

/*
* Note: p may not be a blocked task (it could be current or
* another process running on some other CPU. Rather than
Expand All @@ -773,6 +776,8 @@ get_wchan (struct task_struct *p)
*/
unw_init_from_blocked_task(&info, p);
do {
if (p->state == TASK_RUNNING)
return 0;
if (unw_unwind(&info) < 0)
return 0;
unw_get_ip(&info, &ip);
Expand Down

0 comments on commit 4ebe7b8

Please sign in to comment.