aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/pci_endpoint_test.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2025-03-05 15:00:07 +0000
committerKrzysztof Wilczyński <[email protected]>2025-03-14 16:13:03 +0000
commit8189aa56dbed0bfb46b7b30d4d231f57ab17b3f4 (patch)
tree0263f254f098b4c42929b1ce7a6ea2426d5bc427 /drivers/misc/pci_endpoint_test.c
parentPCI: dwc: Add Rockchip to the RAS DES allowed vendor list (diff)
downloadkernel-8189aa56dbed0bfb46b7b30d4d231f57ab17b3f4.tar.gz
kernel-8189aa56dbed0bfb46b7b30d4d231f57ab17b3f4.zip
PCI: dwc: ep: Return -ENOMEM for allocation failures
If the bitmap or memory allocations fail, then dw_pcie_ep_init_registers() will incorrectly return a success. Return -ENOMEM instead. Fixes: 869bc5253406 ("PCI: dwc: ep: Fix DBI access failure for drivers requiring refclk from host") Signed-off-by: Dan Carpenter <[email protected]> [kwilczynski: commit log] Signed-off-by: Krzysztof Wilczyński <[email protected]> Reviewed-by: Krzysztof Wilczyński <[email protected]> Reviewed-by: Manivannan Sadhasivam <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/misc/pci_endpoint_test.c')
0 files changed, 0 insertions, 0 deletions