mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user