summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorSreekanth Reddy <sreekanth.reddy@broadcom.com>2021-11-17 13:49:09 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2021-11-19 06:25:06 +0300
commit0ee4ba13e09c9d9c1cb6abb59da8295d9952328b (patch)
tree65b5831f2a862a74601a0897140bec441604aece /scripts/gdb/linux/utils.py
parentcc03facb1c4248997592fc683518c00cc257db1a (diff)
downloadlinux-0ee4ba13e09c9d9c1cb6abb59da8295d9952328b.tar.xz
scsi: mpt3sas: Fix kernel panic during drive powercycle test
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>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions