scsi: mpi3mr: Fix mpi3mr_hba_port memory leak in mpi3mr_remove()
authorTomas Henzl <thenzl@redhat.com>
Thu, 2 Mar 2023 23:43:33 +0000 (00:43 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 8 Mar 2023 02:17:23 +0000 (21:17 -0500)
commitd0f3c3728da8af76dfe435f7f0cfa2b9d9e43ef0
treed7d254312425b78b1c99cf04d9a67e07d36c0873
parent7d2b02172b6a2ae6aecd7ef6480b9c4bf3dc59f4
scsi: mpi3mr: Fix mpi3mr_hba_port memory leak in mpi3mr_remove()

Free mpi3mr_hba_port at .remove.

Fixes: 42fc9fee116f ("scsi: mpi3mr: Add helper functions to manage device's port")
Signed-off-by: Tomas Henzl <thenzl@redhat.com>
Link: https://lore.kernel.org/r/20230302234336.25456-4-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_os.c