aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/dwc
diff options
context:
space:
mode:
authorHarshit Mogalapalli <[email protected]>2023-10-30 07:27:57 +0000
committerKrzysztof Wilczyński <[email protected]>2024-01-08 17:44:45 +0000
commit2324be17b5e05ac682e7c81fcbfc7b36a9b1becb (patch)
tree37f13bbfebc3435b8d1f92025d1ee4c24afc7f54 /drivers/pci/controller/dwc
parentPCI: xilinx-xdma: Fix uninitialized symbols in xilinx_pl_dma_pcie_setup_irq() (diff)
downloadkernel-2324be17b5e05ac682e7c81fcbfc7b36a9b1becb.tar.gz
kernel-2324be17b5e05ac682e7c81fcbfc7b36a9b1becb.zip
PCI: xilinx-xdma: Fix error code in xilinx_pl_dma_pcie_init_irq_domain()
Currently, if the function irq_domain_add_linear() fails to allocate a new IRQ domain and returns NULL, we would then still return a success from the xilinx_pl_dma_pcie_init_irq_domain() function regardless, as the PTR_ERR(NULL) would return a value of zero. This is not a desirable outcome. Thus, fix the incorrect error code and return the -ENOMEM error code if the irq_domain_add_linear() fails to allocate a new IRQ domain. [kwilczynski: commit log] Link: https://lore.kernel.org/linux-pci/[email protected] Fixes: 8d786149d78c ("PCI: xilinx-xdma: Add Xilinx XDMA Root Port driver") Signed-off-by: Harshit Mogalapalli <[email protected]> Signed-off-by: Krzysztof Wilczyński <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc')
0 files changed, 0 insertions, 0 deletions