From: Konrad Rzeszutek Wilk Date: Tue, 28 Jan 2014 03:50:35 +0000 (-0500) Subject: acpi-cpufreq: De-register CPU notifier and free struct msr on error. X-Git-Tag: v3.14-rc1~21^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb8c68ef558e6cba241e7ada54f6b3427cb2bf68;p=pandora-kernel.git 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: cfc9c8ed03e4 (acpi-cpufreq: Adjust the code to use the common boost attribute) Acked-by: Lukasz Majewski Signed-off-by: Konrad Rzeszutek Wilk Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed