mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
scsi: mpi3mr: Fix throttle_groups memory leak
[ Upstream commitf305a7b6ca] Add a missing kfree(). Fixes:f10af05732("scsi: mpi3mr: Resource Based Metering") Signed-off-by: Tomas Henzl <thenzl@redhat.com> Link: https://lore.kernel.org/r/20230302234336.25456-2-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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
b5e5bbb3fa
commit
574cc10eda
@@ -4358,6 +4358,9 @@ void mpi3mr_free_mem(struct mpi3mr_ioc *mrioc)
|
||||
mrioc->pel_seqnum_virt = NULL;
|
||||
}
|
||||
|
||||
kfree(mrioc->throttle_groups);
|
||||
mrioc->throttle_groups = NULL;
|
||||
|
||||
kfree(mrioc->logdata_buf);
|
||||
mrioc->logdata_buf = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user