]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:33:41 +0000 (13:33 +0100)
commit6f826e3cccecfe2e933636efc869695e49a67e55
tree3d89cf7825f8874dc51268f7f251cae5f8327b0d
parent4e8da769e8b631e194cbc98009c9436d7a976a91
scsi: mpi3mr: Fix mpi3mr_hba_port memory leak in mpi3mr_remove()

[ Upstream commit f2634b4dd85b3223ed26ffe58242b31c356c0796 ]

Free mpi3mr_hba_port at .remove.

Fixes: 33266bf2c87e ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/mpi3mr/mpi3mr_os.c