Skip to content

Commit ad11044

Browse files
Srinivas-Kandagatlabjorn-helgaas
authored andcommitted
PCI: qcom: Fix pp->dev usage before assignment
Initialize pp->dev in qcom_pcie_probe() before calling get_resources(), which uses it. [bhelgaas: changelog] Fixes: e6a087e ("PCI: qcom: Remove redundant struct qcom_pcie.dev") Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
1 parent 02a1b8f commit ad11044

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/pci/host/pcie-qcom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,11 +533,11 @@ static int qcom_pcie_probe(struct platform_device *pdev)
533533
if (IS_ERR(pcie->phy))
534534
return PTR_ERR(pcie->phy);
535535

536+
pp->dev = dev;
536537
ret = pcie->ops->get_resources(pcie);
537538
if (ret)
538539
return ret;
539540

540-
pp->dev = dev;
541541
pp->root_bus_nr = -1;
542542
pp->ops = &qcom_pcie_dw_ops;
543543

0 commit comments

Comments
 (0)