cpufreq: qcom-hw: fix dereferencing freed memory 'data'
authorShawn Guo <shawn.guo@linaro.org>
Sun, 28 Feb 2021 01:33:19 +0000 (09:33 +0800)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 8 Mar 2021 10:50:06 +0000 (16:20 +0530)
commit02fc409540303801994d076fcdb7064bd634dbf3
tree809c439585c0cbeeef4577cb4960956c21a5ce99
parenta38fd8748464831584a19438cbb3082b5a2dab15
cpufreq: qcom-hw: fix dereferencing freed memory 'data'

Commit 67fc209b527d ("cpufreq: qcom-hw: drop devm_xxx() calls from
init/exit hooks") introduces an issue of dereferencing freed memory
'data'.  Fix it.

Fixes: 67fc209b527d ("cpufreq: qcom-hw: drop devm_xxx() calls from init/exit hooks")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/qcom-cpufreq-hw.c