Skip to content
Commit eb8c68ef authored by Konrad Rzeszutek Wilk's avatar Konrad Rzeszutek Wilk Committed by Rafael J. Wysocki
Browse files

acpi-cpufreq: De-register CPU notifier and free struct msr on error.

If cpufreq_register_driver() fails we would free the acpi driver
related structures but not free the ones allocated
by acpi_cpufreq_boost_init() function. This meant that as
the driver error-ed out and a CPU online/offline event came
we would crash and burn as one of the CPU notifiers would point
to garbage.

Fixes: cfc9c8ed

 (acpi-cpufreq: Adjust the code to use the common boost attribute)
Acked-by: default avatarLukasz Majewski <l.majewski@samsung.com>
Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 4f11b85a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment