scsi: hisi_sas: Check devm_add_action() return value
authorKang Chen <void0red@gmail.com>
Mon, 27 Feb 2023 03:10:30 +0000 (11:10 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Mar 2023 10:49:17 +0000 (12:49 +0200)
commitd92460985d782a65393ae1aff75c8aba044512e8
tree8cfed875cd0187da35372d915ee659b8227325aa
parentb139678fb1b37097ece89c16a500387a3dfde78e
scsi: hisi_sas: Check devm_add_action() return value

[ Upstream commit 06d1a90de60208054cca15ef200138cfdbb642a9 ]

In case devm_add_action() fails, check it in the caller of
interrupt_preinit_v3_hw().

Link: https://lore.kernel.org/r/20230227031030.893324-1-void0red@gmail.com
Signed-off-by: Kang Chen <void0red@gmail.com>
Acked-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c