diff options
author | Minjie Du <duminjie@vivo.com> | 2023-07-05 19:39:12 +0800 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2023-07-12 22:22:37 +0530 |
commit | a68b48afc050a9456ed4ed19d8755e0f925b44e6 (patch) | |
tree | 3714a668ddee05d3d35233a832daf57de39e7f96 /drivers/dma/xilinx/xdma.c | |
parent | b1e213a9e31c20206f111ec664afcf31cbfe0dbb (diff) | |
download | linux-stable-a68b48afc050a9456ed4ed19d8755e0f925b44e6.tar.gz linux-stable-a68b48afc050a9456ed4ed19d8755e0f925b44e6.tar.bz2 linux-stable-a68b48afc050a9456ed4ed19d8755e0f925b44e6.zip |
dmaengine: xilinx: xdma: Fix Judgment of the return value
Fix: make IS_ERR() judge the devm_ioremap_resource() function return.
Fixes: 17ce252266c7 ("dmaengine: xilinx: xdma: Add xilinx xdma driver")
Signed-off-by: Minjie Du <duminjie@vivo.com>
Acked-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/20230705113912.16247-1-duminjie@vivo.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/xilinx/xdma.c')
-rw-r--r-- | drivers/dma/xilinx/xdma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/xilinx/xdma.c b/drivers/dma/xilinx/xdma.c index 93ee298d52b8..ad5ff63354cf 100644 --- a/drivers/dma/xilinx/xdma.c +++ b/drivers/dma/xilinx/xdma.c @@ -892,7 +892,7 @@ static int xdma_probe(struct platform_device *pdev) } reg_base = devm_ioremap_resource(&pdev->dev, res); - if (!reg_base) { + if (IS_ERR(reg_base)) { xdma_err(xdev, "ioremap failed"); goto failed; } |