projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dee7fa
)
dmaengine: mv_xor_v2: Fix error return code in mv_xor_v2_probe()
author
Zhihao Cheng
<chengzhihao1@huawei.com>
Tue, 24 Nov 2020 01:08:13 +0000
(09:08 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:53:21 +0000
(11:53 +0100)
[ Upstream commit
c95e6515a8c065862361f7e0e452978ade7f94ec
]
Return the corresponding error code when first_msi_entry() returns
NULL in mv_xor_v2_probe().
Fixes: 19a340b1a820430 ("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>
drivers/dma/mv_xor_v2.c
patch
|
blob
|
history
diff --git
a/drivers/dma/mv_xor_v2.c
b/drivers/dma/mv_xor_v2.c
index 2753a6b916f60ed65d959d87e4e3c52c095c5802..9b0d463f89bbd478ca594476c8532241d6750d6d 100644
(file)
--- a/
drivers/dma/mv_xor_v2.c
+++ b/
drivers/dma/mv_xor_v2.c
@@
-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,