Files
kernel_common_drivers/drivers/cpufreq
Xingxing Wang 227a0a85bd cpufreq: KASAN report invalid-free in aml_cpufreq_probe [1/1]
PD#SWPL-214036

Problem:
kfree memory allocated by devm_kzalloc would cause memory issue

Solution:
1. init opp_table and dsu_opp_table to NULL.
2. use devm_kfree to free memory allocated by devm_kzalloc.

Verify:
t6d

Change-Id: Iffff276fe505dd76f39755006fc49dba8cfd8eef
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2025-06-03 08:31:25 -07:00
..
2021-12-30 10:01:59 +08:00