diff options
author | Tomas Henzl <[email protected]> | 2023-03-03 00:43:31 +0100 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2023-03-07 21:17:22 -0500 |
commit | f305a7b6ca21a665e8d0cf70b5936991a298c93c (patch) | |
tree | c624c02e4c93ff99b8bfdf576a5f0344a6bb7e54 | |
parent | d3c57724f1569311e4b81e98fad0931028b9bdcd (diff) |
scsi: mpi3mr: Fix throttle_groups memory leak
Add a missing kfree().
Fixes: f10af057325c ("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]>
-rw-r--r-- | drivers/scsi/mpi3mr/mpi3mr_fw.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/mpi3mr/mpi3mr_fw.c b/drivers/scsi/mpi3mr/mpi3mr_fw.c index 29acf6111db3..514ccf29cd7f 100644 --- a/drivers/scsi/mpi3mr/mpi3mr_fw.c +++ b/drivers/scsi/mpi3mr/mpi3mr_fw.c @@ -4389,6 +4389,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; |