]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:25:56 +0000 (11:25 +0100)
commit6a76b1da25be1985970573c3ec7c06dca79b5a12
treed6fa7b930a311f78b06a650be8f33568869788eb
parentb62e01be3e95871f15e0a22244d44f82c69c48dc
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