summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2023-02-14 09:38:33 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2023-02-14 09:38:33 -0800
commite1c04510f521e853019afeca2a5991a5ef8d6a5b (patch)
tree57c3f4fac990aa5702d3c04661563facfb3eb75c /drivers
parent82eac0c830b7d917bd2a8806eb6ed21ef1e0f84e (diff)
parent6f098cde9df2c86d60db727d6270272751943674 (diff)
downloadlinux-rpi-e1c04510f521e853019afeca2a5991a5ef8d6a5b.tar.gz
linux-rpi-e1c04510f521e853019afeca2a5991a5ef8d6a5b.tar.bz2
linux-rpi-e1c04510f521e853019afeca2a5991a5ef8d6a5b.zip
Merge tag 'pm-6.2-rc9' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull power management fix from Rafael Wysocki: "Add a missing NULL pointer check to the cpufreq drver for Qualcomm platforms (Manivannan Sadhasivam)" * tag 'pm-6.2-rc9' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: cpufreq: qcom-hw: Add missing null pointer check
Diffstat (limited to 'drivers')
-rw-r--r--drivers/cpufreq/qcom-cpufreq-hw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/qcom-cpufreq-hw.c
index 957cf6bb8c05..d3f55ca06ed3 100644
--- a/drivers/cpufreq/qcom-cpufreq-hw.c
+++ b/drivers/cpufreq/qcom-cpufreq-hw.c
@@ -706,6 +706,8 @@ static int qcom_cpufreq_hw_driver_probe(struct platform_device *pdev)
return -ENOMEM;
qcom_cpufreq.soc_data = of_device_get_match_data(dev);
+ if (!qcom_cpufreq.soc_data)
+ return -ENODEV;
clk_data = devm_kzalloc(dev, struct_size(clk_data, hws, num_domains), GFP_KERNEL);
if (!clk_data)