Skip to content

Commit e1c0451

Browse files
committed
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
2 parents 82eac0c + 6f098cd commit e1c0451

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/cpufreq/qcom-cpufreq-hw.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,8 @@ static int qcom_cpufreq_hw_driver_probe(struct platform_device *pdev)
706706
return -ENOMEM;
707707

708708
qcom_cpufreq.soc_data = of_device_get_match_data(dev);
709+
if (!qcom_cpufreq.soc_data)
710+
return -ENODEV;
709711

710712
clk_data = devm_kzalloc(dev, struct_size(clk_data, hws, num_domains), GFP_KERNEL);
711713
if (!clk_data)

0 commit comments

Comments
 (0)