diff options
author | Sreekanth Reddy <[email protected]> | 2021-11-17 16:19:09 +0530 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2021-11-18 22:25:06 -0500 |
commit | 0ee4ba13e09c9d9c1cb6abb59da8295d9952328b (patch) | |
tree | 65b5831f2a862a74601a0897140bec441604aece /lib/test_fortify/write_overflow-strncpy.c | |
parent | cc03facb1c4248997592fc683518c00cc257db1a (diff) |
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/[email protected]
Fixes: f92363d12359 ("[SCSI] mpt3sas: add new driver supporting 12GB SAS")
Signed-off-by: Sreekanth Reddy <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy.c')
0 files changed, 0 insertions, 0 deletions