diff options
| author | Zhongqiu Han <[email protected]> | 2024-11-05 12:07:35 +0000 |
|---|---|---|
| committer | Krzysztof Wilczyński <[email protected]> | 2024-11-16 18:20:11 +0000 |
| commit | 5089b3d874e9933d9842e90410d3af1520494757 (patch) | |
| tree | 873a9de54ab9eb70ad88973d19b9dd45c12dc046 /drivers/pci/controller/dwc/pcie-qcom-common.c | |
| parent | PCI: endpoint: Remove surplus return statement from pci_epf_test_clean_dma_ch... (diff) | |
| download | kernel-5089b3d874e9933d9842e90410d3af1520494757.tar.gz kernel-5089b3d874e9933d9842e90410d3af1520494757.zip | |
PCI: endpoint: epf-mhi: Avoid NULL dereference if DT lacks 'mmio'
If platform_get_resource_byname() fails and returns NULL because DT lacks
an 'mmio' property for the MHI endpoint, dereferencing res->start will
cause a NULL pointer access. Add a check to prevent it.
Fixes: 1bf5f25324f7 ("PCI: endpoint: Add PCI Endpoint function driver for MHI bus")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Zhongqiu Han <[email protected]>
[kwilczynski: error message update per the review feedback]
Signed-off-by: Krzysztof Wilczyński <[email protected]>
[bhelgaas: commit log]
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Niklas Cassel <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc/pcie-qcom-common.c')
0 files changed, 0 insertions, 0 deletions
