Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cpufreq: powernv: Free 'chips' on module exit

This will free the dynamically allocated memory of 'chips' on
module exit.

Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Reviewed-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Shilpasri G Bhat and committed by
Rafael J. Wysocki
86622cb8 de1df26b

+1
+1
drivers/cpufreq/powernv-cpufreq.c
··· 612 612 unregister_reboot_notifier(&powernv_cpufreq_reboot_nb); 613 613 opal_message_notifier_unregister(OPAL_MSG_OCC, 614 614 &powernv_cpufreq_opal_nb); 615 + kfree(chips); 615 616 cpufreq_unregister_driver(&powernv_cpufreq_driver); 616 617 } 617 618 module_exit(powernv_cpufreq_exit);