From: Helge Deller Date: Thu, 17 Dec 2020 16:57:54 +0000 (+0100) Subject: parisc: Drop out of get_whan() if task is running again X-Git-Tag: iomap-folio-5.17-old~2038^2~6 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f286303286f8c2cbef319f6288abb1e053a1b3d9;p=users%2Fwilly%2Flinux.git parisc: Drop out of get_whan() if task is running again Signed-off-by: Helge Deller --- 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;