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)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 8 Mar 2023 02:17:23 +0000 (21:17 -0500)
commitc798304470cab88723d895726d17fcb96472e0e9
treef3e2a34f4b590b1d983738c7e82e8462ba6dad93
parentd4caa1a4255cc44be56bcab3db2c97c632e6cc10
scsi: mpi3mr: Fix memory leaks in mpi3mr_init_ioc()

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

Fixes: fe6db6151565 ("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>
drivers/scsi/mpi3mr/mpi3mr_fw.c