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:47:53 +0000 (12:47 +0200)
commit0267cd04713371da803b9425ececcd22f98cc2ea
treeb20039270c50c9246376a1e833da06813ca7b919
parent83e7b1db4523463b5ccf866c780338ab01a0d9f6
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