aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorKautuk Consul <kautuk.consul.1980@gmail.com>2016-04-19 15:48:21 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2017-10-06 20:51:52 +1100
commit4ca360f3dbf2036d964cdf3a6c4a45a81fdf8e18 (patch)
tree410ee4122e075d177af46e049efa823b6b9f02b9 /drivers/misc
parentselftests/powerpc: Use snprintf to construct DSCR sysfs interface paths (diff)
downloadlinux-dev-4ca360f3dbf2036d964cdf3a6c4a45a81fdf8e18.tar.xz
linux-dev-4ca360f3dbf2036d964cdf3a6c4a45a81fdf8e18.zip
powerpc: get_wchan(): solve possible race scenario due to parallel wakeup
Add a check for p->state == TASK_RUNNING so that any wake-ups on task_struct p in the interim lead to 0 being returned by get_wchan(). Signed-off-by: Kautuk Consul <kautuk.consul.1980@gmail.com> [mpe: Confirmed other architectures do similar] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/misc')
0 files changed, 0 insertions, 0 deletions