linux/drivers/scsi/mpi3mr
Ranjan Kumar e978a36f33 scsi: mpi3mr: Add NULL checks when resetting request and reply queues
[ Upstream commit fa96392ebe ]

The driver encountered a crash during resource cleanup when the reply and
request queues were NULL due to freed memory.  This issue occurred when the
creation of reply or request queues failed, and the driver freed the memory
first, but attempted to mem set the content of the freed memory, leading to
a system crash.

Add NULL pointer checks for reply and request queues before accessing the
reply/request memory during cleanup

Signed-off-by: Ranjan Kumar <ranjan.kumar@broadcom.com>
Link: https://patch.msgid.link/20260212070026.30263-1-ranjan.kumar@broadcom.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-03-19 16:08:09 +01:00
..
mpi scsi: mpi3mr: Read missing IOCFacts flag for reply queue full overflow 2026-01-02 12:57:16 +01:00
Kconfig scsi: mpi3mr: Select CONFIG_SCSI_SAS_ATTRS 2022-10-22 03:14:51 +00:00
Makefile scsi: mpi3mr: Refer CONFIG_SCSI_MPI3MR in Makefile 2022-12-14 03:01:38 +00:00
mpi3mr.h scsi: mpi3mr: Prevent duplicate SAS/SATA device entries in channel 1 2026-01-17 16:35:17 +01:00
mpi3mr_app.c scsi: mpi3mr: Fix kernel-doc issues in mpi3mr_app.c 2025-06-24 21:09:56 -04:00
mpi3mr_debug.h scsi: mpi3mr: Update copyright year 2023-03-16 23:54:29 -04:00
mpi3mr_fw.c scsi: mpi3mr: Add NULL checks when resetting request and reply queues 2026-03-19 16:08:09 +01:00
mpi3mr_os.c scsi: mpi3mr: Prevent duplicate SAS/SATA device entries in channel 1 2026-01-17 16:35:17 +01:00
mpi3mr_transport.c scsi: mpi3mr: Fix device loss during enclosure reboot due to zero link speed 2025-08-25 21:39:37 -04:00