]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit834fcd298003c10ce450e66960c78893cb1cc4b5
treedff2a6b96422f400423424f3d2f9f2d878f8a1dc
parenta051f220d6b9bf9367695e2c319ccc3712b631ee
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: 77c34ef1c319 ("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