OpenCloudOS-Kernel/drivers/scsi/megaraid
Harshvardhan Jha 77541f78ea scsi: megaraid_mm: Fix end of loop tests for list_for_each_entry()
The list_for_each_entry() iterator, "adapter" in this code, can never be
NULL.  If we exit the loop without finding the correct adapter then
"adapter" points invalid memory that is an offset from the list head.  This
will eventually lead to memory corruption and presumably a kernel crash.

Link: https://lore.kernel.org/r/20210708074642.23599-1-harshvardhan.jha@oracle.com
Acked-by: Sumit Saxena <sumit.saxena@broadcom.com>
Signed-off-by: Harshvardhan Jha <harshvardhan.jha@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2021-07-28 23:29:09 -04:00
..
Kconfig.megaraid SCSI misc on 20190709 2019-07-11 15:14:01 -07:00
Makefile scsi: megaraid_sas: Export RAID map through debugfs 2019-06-18 19:46:20 -04:00
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 treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
megaraid_mbox.c scsi: megaraid_mbox: Use DEVICE_ATTR_ADMIN_RO() macro 2021-06-22 23:00:02 -04: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 treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
megaraid_sas.h scsi: megaraid_sas: Update driver version to 07.717.02.00-rc1 2021-06-02 01:06:33 -04:00
megaraid_sas_base.c Merge branch '5.14/scsi-result' into 5.14/scsi-staging 2021-06-02 01:37:04 -04:00
megaraid_sas_debugfs.c scsi: megaraid_sas: Remove unused including <linux/version.h> 2019-06-18 19:46:25 -04:00
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 Merge branch '5.14/scsi-result' into 5.14/scsi-staging 2021-06-02 01:37:04 -04:00
megaraid_sas_fusion.h scsi: megaraid_sas: mq_poll support 2021-03-04 17:37:03 -05:00