mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-25 11:55:37 +00:00
parisc: Drop out of get_whan() if task is running again
Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
parent
92bf22614b
commit
f286303286
1 changed files with 2 additions and 0 deletions
|
@ -260,6 +260,8 @@ get_wchan(struct task_struct *p)
|
|||
do {
|
||||
if (unwind_once(&info) < 0)
|
||||
return 0;
|
||||
if (p->state == TASK_RUNNING)
|
||||
return 0;
|
||||
ip = info.ip;
|
||||
if (!in_sched_functions(ip))
|
||||
return ip;
|
||||
|
|
Loading…
Reference in a new issue