Commit 9553636
PCI: qcom: Prevent potential error pointer dereference
Only call dev_pm_opp_put() if dev_pm_opp_find_freq_exact() succeeds;
otherwise it leads to an error pointer dereference.
Fixes: 78b5f6f8855e ("PCI: qcom: Add OPP support to scale performance")
Link: https://lore.kernel.org/linux-pci/[email protected]
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Krzysztof Wilczyński <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Tested-by: Anders Roxell <[email protected]>
Reviewed-by: Manivannan Sadhasivam <[email protected]>1 parent 101e5c5 commit 9553636
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1447 | 1447 | | |
1448 | 1448 | | |
1449 | 1449 | | |
| 1450 | + | |
1450 | 1451 | | |
1451 | | - | |
1452 | 1452 | | |
1453 | 1453 | | |
1454 | 1454 | | |
| |||
0 commit comments