summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSreekanth Reddy <sreekanth.reddy@broadcom.com>2021-11-17 16:19:09 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-12-08 08:44:05 +0100
commit5d4d50b1f159a5ebab7617f47121b4370aa58afe (patch)
tree15ee69a5335732f0ae4be290a66547a1440b2b7a /scripts
parente11b0f401c5b768bc337bd7c226f9e83d5c64394 (diff)
scsi: mpt3sas: Fix kernel panic during drive powercycle test
[ Upstream commit 0ee4ba13e09c9d9c1cb6abb59da8295d9952328b ] While looping over shost's sdev list it is possible that one of the drives is getting removed and its sas_target object is freed but its sdev object remains intact. Consequently, a kernel panic can occur while the driver is trying to access the sas_address field of sas_target object without also checking the sas_target object for NULL. Link: https://lore.kernel.org/r/20211117104909.2069-1-sreekanth.reddy@broadcom.com Fixes: f92363d12359 ("[SCSI] mpt3sas: add new driver supporting 12GB SAS") Signed-off-by: Sreekanth Reddy <sreekanth.reddy@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions