]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: mpi3mr: Fix memory leaks in mpi3mr_init_ioc()
authorTomas Henzl <thenzl@redhat.com>
Thu, 2 Mar 2023 23:43:35 +0000 (00:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:33:41 +0000 (13:33 +0100)
commit90c78850e0b602c4d50c290de0670783b41037d6
treec30379bfd02b643c9c9df707324e41f38aa1a9d4
parent5abca1af07b70bf43d4ba1460bd198331f938783
scsi: mpi3mr: Fix memory leaks in mpi3mr_init_ioc()

[ Upstream commit af4c932af546aac0d77d3b3ec7ae07d02337b9b1 ]

Don't allocate memory again when IOC is being reinitialized.

Fixes: da6ea549bcb2 ("scsi: mpi3mr: Handle offline FW activation in graceful manner")
Signed-off-by: Tomas Henzl <thenzl@redhat.com>
Link: https://lore.kernel.org/r/20230302234336.25456-6-thenzl@redhat.com
Acked-by: Sathya Prakash Veerichetty <sathya.prakash@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/mpi3mr/mpi3mr_fw.c