projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de1df26
)
cpufreq: powernv: Free 'chips' on module exit
author
Shilpasri G Bhat
<
[email protected]
>
Tue, 2 Feb 2016 19:41:37 +0000
(
01:11
+0530)
committer
Rafael J. Wysocki
<
[email protected]
>
Fri, 5 Feb 2016 01:38:01 +0000
(
02:38
+0100)
This will free the dynamically allocated memory of 'chips' on
module exit.
Signed-off-by: Shilpasri G Bhat <
[email protected]
>
Reviewed-by: Gautham R. Shenoy <
[email protected]
>
Acked-by: Viresh Kumar <
[email protected]
>
Signed-off-by: Rafael J. Wysocki <
[email protected]
>
drivers/cpufreq/powernv-cpufreq.c
patch
|
blob
|
history
diff --git
a/drivers/cpufreq/powernv-cpufreq.c
b/drivers/cpufreq/powernv-cpufreq.c
index 547890fd9572179eba4c6ce81caf5bbc8b06b947..53f980bf9b77601bb9d63767ddb80936f3f160d3 100644
(file)
--- a/
drivers/cpufreq/powernv-cpufreq.c
+++ b/
drivers/cpufreq/powernv-cpufreq.c
@@
-612,6
+612,7
@@
static void __exit powernv_cpufreq_exit(void)
unregister_reboot_notifier(&powernv_cpufreq_reboot_nb);
opal_message_notifier_unregister(OPAL_MSG_OCC,
&powernv_cpufreq_opal_nb);
+ kfree(chips);
cpufreq_unregister_driver(&powernv_cpufreq_driver);
}
module_exit(powernv_cpufreq_exit);