diff options
author | 2022-03-24 02:47:11 -0700 | |
---|---|---|
committer | 2022-04-06 22:58:17 -0400 | |
commit | 56495f295d8e021f77d065b890fc0100e3f9f6d8 (patch) | |
tree | 80d08fe738d35a9d0d3ccb178defacdf34585c17 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | scsi: ufs: ufshpb: Fix a NULL check on list iterator (diff) | |
download | wireguard-linux-56495f295d8e021f77d065b890fc0100e3f9f6d8.tar.xz wireguard-linux-56495f295d8e021f77d065b890fc0100e3f9f6d8.zip |
scsi: megaraid_sas: Target with invalid LUN ID is deleted during scan
The megaraid_sas driver supports single LUN for RAID devices. That is LUN
0. All other LUNs are unsupported. When a device scan on a logical target
with invalid LUN number is invoked through sysfs, that target ends up
getting removed.
Add LUN ID validation in the slave destroy function to avoid the target
deletion.
Link: https://lore.kernel.org/r/20220324094711.48833-1-chandrakanth.patil@broadcom.com
Signed-off-by: Chandrakanth patil <chandrakanth.patil@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions