Skip to content

Commit

Permalink
parisc: Drop out of get_whan() if task is running again
Browse files Browse the repository at this point in the history
Signed-off-by: Helge Deller <deller@gmx.de>
  • Loading branch information
Helge Deller committed Feb 12, 2021
1 parent 92bf226 commit f286303
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/parisc/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f286303

Please sign in to comment.