diff options
author | Justin Tee <justin.tee@broadcom.com> | 2025-09-15 11:08:06 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2025-09-16 22:20:00 -0400 |
commit | 06d3c77c520b8c3ddcfd11c75f92f91213f7078a (patch) | |
tree | 340dd8cf57dd6ebcb59f29545246253f22faf251 /rust/helpers/processor.c | |
parent | 5de09770b1c0e229d2cec93e7f634fcdc87c9bc8 (diff) |
scsi: lpfc: Fix memory leak when nvmeio_trc debugfs entry is used
Right after phba->nvmeio_trc is kzalloc'ed, phba->nvmeio_trc is set to
NULL and the memory reference to free the kzalloc'ed memory is lost.
Remove the phba->nvmeio_trc NULL ptr assignment after kzalloc.
phba->nvmeio_trc is freed in lpfc_debugfs_terminate.
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Message-ID: <20250915180811.137530-10-justintee8345@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'rust/helpers/processor.c')
0 files changed, 0 insertions, 0 deletions