sched: Avoid NULL dereference on sd_busy
authorPeter Zijlstra <[email protected]>
Tue, 19 Nov 2013 15:41:49 +0000 (16:41 +0100)
committerIngo Molnar <[email protected]>
Tue, 19 Nov 2013 16:01:16 +0000 (17:01 +0100)
commit42eb088ed246a5a817bb45a8b32fe234cf1c0f8b
tree39c1ec62de43ed1fd54236258a9d9cb4769068c6
parent9abf24d465180f5f2eb26a43545348262f16b771
sched: Avoid NULL dereference on sd_busy

Commit 37dc6b50cee9 ("sched: Remove unnecessary iteration over sched
domains to update nr_busy_cpus") forgot to clear 'sd_busy' under some
conditions leading to a possible NULL deref in set_cpu_sd_state_idle().

Reported-by: Anton Blanchard <[email protected]>
Cc: Preeti U Murthy <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
kernel/sched/core.c