watchdog/hardlockup/perf: Cure UP damage
authorThomas Gleixner <tglx@linutronix.de>
Mon, 25 Sep 2017 18:21:54 +0000 (20:21 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 25 Sep 2017 18:21:54 +0000 (20:21 +0200)
commit115ef3b7e61ac64e32827611a127002672ed3725
tree0814accfe914507045c65a7e12b38acbd03d1b81
parentab5fe3ff38ff9653490910cc71dbbedc95a86e41
watchdog/hardlockup/perf: Cure UP damage

for_each_cpu() unintuitively reports CPU0 as set independend of the actual
cpumask content on UP kernels. That leads to a NULL pointer dereference
when the cleanup function is invoked and there is no event to clean up.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/watchdog_hld.c