diff options
author | Helge Deller <deller@gmx.de> | 2020-12-17 17:57:54 +0100 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2021-02-12 16:30:07 +0100 |
commit | f286303286f8c2cbef319f6288abb1e053a1b3d9 (patch) | |
tree | 5ddeec6b39567c3000451cca348bb5d75b40bb56 /arch/parisc | |
parent | Linux 5.11-rc7 (diff) | |
download | linux-f286303286f8c2cbef319f6288abb1e053a1b3d9.tar.xz linux-f286303286f8c2cbef319f6288abb1e053a1b3d9.zip |
parisc: Drop out of get_whan() if task is running again
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc')
-rw-r--r-- | arch/parisc/kernel/process.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/parisc/kernel/process.c b/arch/parisc/kernel/process.c index a92a23d6acd9..fda1c1a6a444 100644 --- a/arch/parisc/kernel/process.c +++ b/arch/parisc/kernel/process.c @@ -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; |