dmaengine: mv_xor_v2: Fix error return code in mv_xor_v2_probe()
authorZhihao Cheng <chengzhihao1@huawei.com>
Tue, 24 Nov 2020 01:08:13 +0000 (09:08 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:53:21 +0000 (11:53 +0100)
commit17fdb0eb50e7efef6a5e99ccc812114268f32079
tree5e054614b62f8aff8a252f5a3d0a6d83f323d3dc
parent0dee7fabab783de5ae97ddec68b42e6b02e447cc
dmaengine: mv_xor_v2: Fix error return code in mv_xor_v2_probe()

[ 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