This series fixes resource cleanup on initialization failure and
module unload in the PowerNV CPU frequency driver.
Patch 1 waits for the frequency limit check on the other CPU to
finish before the driver frees the chip data.
Patch 2 frees the frequency lookup table on initialization failure
and module unload.
Changes in v2
- Add patch 1 before the original cleanup, as suggested by Zhongqiu.
Thanks, Zhongqiu!
Compile testing passed.
Haoxiang Li (2):
cpufreq: powernv: Fix use-after-free in throttle check
cpufreq: powernv: Free the P-state reverse map on init failure and
exit
drivers/cpufreq/powernv-cpufreq.c | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
base-commit: 25faec9ce61c01fb45abf812a222c5b43c3cd5c5
--
2.25.1