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)
committerVinod Koul <vkoul@kernel.org>
Tue, 24 Nov 2020 17:25:15 +0000 (22:55 +0530)
commitc95e6515a8c065862361f7e0e452978ade7f94ec
treeae48059cc10871b932ee5911fc45505cf1a92d08
parent0ab785c894e618587e83bb67e8a8e96649868ad1
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: 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>
drivers/dma/mv_xor_v2.c