mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
dmaengine: mv_xor_v2: Fix error return code in mv_xor_v2_probe()
[ Upstream commitc95e6515a8
] Return the corresponding error code when first_msi_entry() returns NULL in mv_xor_v2_probe(). Fixes:19a340b1a8
("dmaengine: mv_xor_v2: new driver") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com> Link: https://lore.kernel.org/r/20201124010813.1939095-1-chengzhihao1@huawei.com Signed-off-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
46f8c79611
commit
b0f1878c2d
1 changed files with 3 additions and 1 deletions
|
@ -766,8 +766,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,
|
||||
|
|
Loading…
Reference in a new issue