WSL2-Linux-Kernel/drivers/dma/dw-edma
Gustavo Pimentel 84b0aa2e0d dmaengine: dw-edma: Add pcim_iomap_table return check
Currently, is missing a null check on a pcim_iomap_table() return value
and this can lead to a null pointer dereference if the desired BAR
wasn't mapped previously.
Fix this by adding a null check and returning -ENOMEM.

Addresses-Coverity: ("Dereference null return")
Signed-off-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
Link: https://lore.kernel.org/r/bc5e6b8632c84660bb6dae454980e9419992ed14.1613674948.git.gustavo.pimentel@synopsys.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2021-03-16 22:58:54 +05:30
..
Kconfig dmaengine: dw-edma: Fix build error without CONFIG_PCI_MSI 2019-06-12 10:22:02 +05:30
Makefile dmaengine: Add Synopsys eDMA IP PCIe glue-logic 2019-06-10 13:10:39 +05:30
dw-edma-core.c dmaengine: dw-edma: Revert fix scatter-gather address calculation 2021-03-16 22:58:54 +05:30
dw-edma-core.h dmaengine: dw-edma: Move struct dentry variable from static definition into dw_edma struct 2021-03-16 22:58:53 +05:30
dw-edma-pcie.c dmaengine: dw-edma: Add pcim_iomap_table return check 2021-03-16 22:58:54 +05:30
dw-edma-v0-core.c dmaengine: dw-edma: Move struct dentry variable from static definition into dw_edma struct 2021-03-16 22:58:53 +05:30
dw-edma-v0-core.h dmaengine: dw-edma: Move struct dentry variable from static definition into dw_edma struct 2021-03-16 22:58:53 +05:30
dw-edma-v0-debugfs.c dmaengine: dw-edma: Move struct dentry variable from static definition into dw_edma struct 2021-03-16 22:58:53 +05:30
dw-edma-v0-debugfs.h dmaengine: dw-edma: Move struct dentry variable from static definition into dw_edma struct 2021-03-16 22:58:53 +05:30
dw-edma-v0-regs.h dmaengine: dw-edma: Fix comments offset characters' alignment 2021-03-16 22:58:52 +05:30