]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
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)
committerSeth Forshee <seth.forshee@canonical.com>
Wed, 17 Mar 2021 18:48:58 +0000 (13:48 -0500)
commitd1f66667d90b8492e8bdcbade66ccb5a29eb5f27
treee59bc69d3c4a06a7cf6822c4368c54ebac75099e
parent3570d2bd9d258c415acdc0500ee247a470c302ac
cpufreq: qcom-hw: fix dereferencing freed memory 'data'

BugLink: https://bugs.launchpad.net/bugs/1919492
[ Upstream commit 02fc409540303801994d076fcdb7064bd634dbf3 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/cpufreq/qcom-cpufreq-hw.c