diff options
author | 2025-03-05 18:00:07 +0300 | |
---|---|---|
committer | 2025-03-14 16:13:03 +0000 | |
commit | 8189aa56dbed0bfb46b7b30d4d231f57ab17b3f4 (patch) | |
tree | 0263f254f098b4c42929b1ce7a6ea2426d5bc427 /net/lapb/lapb_timer.c | |
parent | PCI: dwc: Add Rockchip to the RAS DES allowed vendor list (diff) | |
download | wireguard-linux-8189aa56dbed0bfb46b7b30d4d231f57ab17b3f4.tar.xz wireguard-linux-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 <dan.carpenter@linaro.org>
[kwilczynski: commit log]
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Reviewed-by: Krzysztof Wilczyński <kw@linux.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/36dcb6fc-f292-4dd5-bd45-a8c6f9dc3df7@stanley.mountain
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions