Skip to content

Commit f305a7b

Browse files
thenzlmartinkpetersen
authored andcommitted
scsi: mpi3mr: Fix throttle_groups memory leak
Add a missing kfree(). Fixes: f10af05 ("scsi: mpi3mr: Resource Based Metering") Signed-off-by: Tomas Henzl <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: Sathya Prakash Veerichetty <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent d3c5772 commit f305a7b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/scsi/mpi3mr/mpi3mr_fw.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4389,6 +4389,9 @@ void mpi3mr_free_mem(struct mpi3mr_ioc *mrioc)
43894389
mrioc->pel_seqnum_virt = NULL;
43904390
}
43914391

4392+
kfree(mrioc->throttle_groups);
4393+
mrioc->throttle_groups = NULL;
4394+
43924395
kfree(mrioc->logdata_buf);
43934396
mrioc->logdata_buf = NULL;
43944397

0 commit comments

Comments
 (0)