diff options
author | Sreekanth Reddy <sreekanth.reddy@broadcom.com> | 2021-11-17 16:19:09 +0530 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-11-18 22:25:06 -0500 |
commit | 0ee4ba13e09c9d9c1cb6abb59da8295d9952328b (patch) | |
tree | 65b5831f2a862a74601a0897140bec441604aece /sound/firewire | |
parent | cc03facb1c4248997592fc683518c00cc257db1a (diff) | |
download | linux-stable-0ee4ba13e09c9d9c1cb6abb59da8295d9952328b.tar.gz linux-stable-0ee4ba13e09c9d9c1cb6abb59da8295d9952328b.tar.bz2 linux-stable-0ee4ba13e09c9d9c1cb6abb59da8295d9952328b.zip |
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 'sound/firewire')
0 files changed, 0 insertions, 0 deletions