aboutsummaryrefslogtreecommitdiff
path: root/tools/objtool/arch/x86/decode.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <[email protected]>2016-09-20 16:56:28 +0200
committerThomas Gleixner <[email protected]>2016-09-20 16:59:21 +0200
commit5372e054a1928fe704cf0a5e2e139645a777b50a (patch)
treef49d3bbc2ac21e1dc537277eb3a40e9ca37ff654 /tools/objtool/arch/x86/decode.c
parentb067a7be411ccb31b6cc866fc213670c3acf4001 (diff)
cpufreq: Fix up conversion to hotplug state machine
The function cpufreq_register_driver() returns zero on success and since commit 27622b061eb4 ("cpufreq: Convert to hotplug state machine") erroneously a positive number. Due to the "if (x) assume_error" construct all callers assumed an error and as a consequence the cpu freq kworker crashes with a NULL pointer dereference. Reset the return value back to zero in the success case. Fixes: 27622b061eb4 ("cpufreq: Convert to hotplug state machine") Reported-by: Borislav Petkov <[email protected]> Reported-and-tested-by: Ingo Molnar <[email protected]> Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Cc: [email protected] Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'tools/objtool/arch/x86/decode.c')
0 files changed, 0 insertions, 0 deletions