scsi: megaraid_sas: TM command refire leads to controller firmware crash
authorSumit Saxena <sumit.saxena@broadcom.com>
Fri, 8 May 2020 08:52:42 +0000 (14:22 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Jun 2020 14:40:35 +0000 (16:40 +0200)
commit387d51f0c16fbd6fab440386d2d6bccf78910576
tree6caba4d1c62bc817bb7dfe991d1ad6392694cc37
parent205b4c441b0e18e11f7c2223f5a72caffd11250a
scsi: megaraid_sas: TM command refire leads to controller firmware crash

commit 6fd8525a70221c26823b1c7e912fb21f218fb0c5 upstream.

When TM command times out, driver invokes the controller reset. Post reset,
driver re-fires pended TM commands which leads to firmware crash.

Post controller reset, return pended TM commands back to OS.

Link: https://lore.kernel.org/r/20200508085242.23406-1-chandrakanth.patil@broadcom.com
Cc: stable@vger.kernel.org
Signed-off-by: Sumit Saxena <sumit.saxena@broadcom.com>
Signed-off-by: Chandrakanth Patil <chandrakanth.patil@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/megaraid/megaraid_sas_fusion.c