Commit c95e6515 authored by Zhihao Cheng's avatar Zhihao Cheng Committed by Vinod Koul
Browse files

dmaengine: mv_xor_v2: Fix error return code in mv_xor_v2_probe()



Return the corresponding error code when first_msi_entry() returns
NULL in mv_xor_v2_probe().

Fixes: 19a340b1 ("dmaengine: mv_xor_v2: new driver")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarZhihao Cheng <chengzhihao1@huawei.com>
Link: https://lore.kernel.org/r/20201124010813.1939095-1-chengzhihao1@huawei.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 0ab785c8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -771,8 +771,10 @@ static int mv_xor_v2_probe(struct platform_device *pdev)
		goto disable_clk;

	msi_desc = first_msi_entry(&pdev->dev);
	if (!msi_desc)
	if (!msi_desc) {
		ret = -ENODEV;
		goto free_msi_irqs;
	}
	xor_dev->msi_desc = msi_desc;

	ret = devm_request_irq(&pdev->dev, msi_desc->irq,