Commit a68b48af authored by Minjie Du's avatar Minjie Du Committed by Vinod Koul

dmaengine: xilinx: xdma: Fix Judgment of the return value

Fix: make IS_ERR() judge the devm_ioremap_resource() function return.

Fixes: 17ce2522 ("dmaengine: xilinx: xdma: Add xilinx xdma driver")
Signed-off-by: default avatarMinjie Du <duminjie@vivo.com>
Acked-by: default avatarMichal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/20230705113912.16247-1-duminjie@vivo.comSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent b1e213a9
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment