linux-stable/drivers/scsi/megaraid
Chandrakanth patil d50177b0f5 scsi: megaraid_sas: Target with invalid LUN ID is deleted during scan
[ Upstream commit 56495f295d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-20 09:36:23 +02:00
..
Kconfig.megaraid
Makefile
mbox_defs.h treewide: remove editor modelines and cruft 2021-05-07 00:26:34 -07:00
mega_common.h treewide: remove editor modelines and cruft 2021-05-07 00:26:34 -07:00
megaraid_ioctl.h
megaraid_mbox.c scsi: megaraid: Fix a kernel-doc warning 2021-11-29 23:02:14 -05:00
megaraid_mbox.h treewide: remove editor modelines and cruft 2021-05-07 00:26:34 -07:00
megaraid_mm.c scsi: megaraid_mm: Fix end of loop tests for list_for_each_entry() 2021-07-28 23:29:09 -04:00
megaraid_mm.h
megaraid_sas.h scsi: megaraid_sas: Target with invalid LUN ID is deleted during scan 2022-04-20 09:36:23 +02:00
megaraid_sas_base.c scsi: megaraid_sas: Target with invalid LUN ID is deleted during scan 2022-04-20 09:36:23 +02:00
megaraid_sas_debugfs.c
megaraid_sas_fp.c scsi: megaraid_sas: Early detection of VD deletion through RaidMap update 2021-06-02 01:06:33 -04:00
megaraid_sas_fusion.c scsi: megaraid_sas: Call scsi_done() directly 2021-10-16 21:29:15 -04:00
megaraid_sas_fusion.h