]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86/intel/cstate: Prevent hotplug callback leak
authorThomas Gleixner <tglx@linutronix.de>
Thu, 22 Dec 2016 10:02:08 +0000 (11:02 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 25 Dec 2016 09:47:40 +0000 (10:47 +0100)
commitb4523d02da6de081985db18ef751c5c2be56d901
treedff2a6b96422f400423424f3d2f9f2d878f8a1dc
parentf6ceb048e083718c740e818377c26003688f1c06
perf/x86/intel/cstate: Prevent hotplug callback leak

If the pmu registration fails the registered hotplug callbacks are not
removed. Wrong in any case, but fatal in case of a modular driver.

Replace the nonsensical state names with proper ones while at it.

Fixes: a93cf2c49ce2 ("perf/x86/intel/cstate: Convert Intel CSTATE to hotplug state machine")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Sebastian Siewior <bigeasy@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: stable@vger.kernel.org
arch/x86/events/intel/cstate.c