提交 f305a7b6 编写于 作者: T Tomas Henzl 提交者: Martin K. Petersen

scsi: mpi3mr: Fix throttle_groups memory leak

Add a missing kfree().

Fixes: f10af057 ("scsi: mpi3mr: Resource Based Metering")
Signed-off-by: NTomas Henzl <thenzl@redhat.com>
Link: https://lore.kernel.org/r/20230302234336.25456-2-thenzl@redhat.comAcked-by: NSathya Prakash Veerichetty <sathya.prakash@broadcom.com>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 d3c57724
...@@ -4389,6 +4389,9 @@ void mpi3mr_free_mem(struct mpi3mr_ioc *mrioc) ...@@ -4389,6 +4389,9 @@ void mpi3mr_free_mem(struct mpi3mr_ioc *mrioc)
mrioc->pel_seqnum_virt = NULL; mrioc->pel_seqnum_virt = NULL;
} }
kfree(mrioc->throttle_groups);
mrioc->throttle_groups = NULL;
kfree(mrioc->logdata_buf); kfree(mrioc->logdata_buf);
mrioc->logdata_buf = NULL; mrioc->logdata_buf = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册