]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: qcom-hw: Fix return value check in qcom_cpufreq_hw_cpu_init()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 4 Mar 2021 10:04:23 +0000 (10:04 +0000)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 8 Mar 2021 10:50:07 +0000 (16:20 +0530)
commitbe5d84bdc510ba7eca2b08f35b233cb2b49eb139
treeb64d701e05c2e3d6e1a2fded125f8f05cfd8f4cf
parenta96a7efe5a679c526fc2dbca903c3310d996c097
cpufreq: qcom-hw: Fix return value check in qcom_cpufreq_hw_cpu_init()

In case of error, the function ioremap() returns NULL pointer
not ERR_PTR(). The IS_ERR() test in the return value check
should be replaced with NULL test.

Fixes: 6665e775d01f ("cpufreq: qcom-hw: drop devm_xxx() calls from init/exit hooks")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/qcom-cpufreq-hw.c