]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: megaraid_sas: Fix crash after a double completion
authorTomas Henzl <thenzl@redhat.com>
Fri, 24 Mar 2023 15:01:34 +0000 (16:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Apr 2023 09:16:43 +0000 (11:16 +0200)
commitb3ed02cc8ca8225b9a86d54baea1d3d958e11718
tree43b5060b175e0f4a1e33b75920fb8da6a98e43ef
parentcb161ad4d5e441d12bfcf6cd8a121dfb8f60818a
scsi: megaraid_sas: Fix crash after a double completion

[ Upstream commit 2309df27111a51734cb9240b4d3c25f2f3c6ab06 ]

When a physical disk is attached directly "without JBOD MAP support" (see
megasas_get_tm_devhandle()) then there is no real error handling in the
driver.  Return FAILED instead of SUCCESS.

Fixes: 6133153a54ec ("megaraid_sas: Task management support")
Signed-off-by: Tomas Henzl <thenzl@redhat.com>
Link: https://lore.kernel.org/r/20230324150134.14696-1-thenzl@redhat.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/megaraid/megaraid_sas_fusion.c