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

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.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent b1e213a9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}