diff options
author | Dinghao Liu <[email protected]> | 2023-11-23 16:19:41 +0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2023-12-05 20:38:26 -0500 |
commit | 235f2b548d7f4ac5931d834f05d3f7f5166a2e72 (patch) | |
tree | 436ff927016cc2429badc060a4779dab5e311c34 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | b09d7f8fd50f6e93cbadd8d27fde178f745b42a1 (diff) |
scsi: be2iscsi: Fix a memleak in beiscsi_init_wrb_handle()
When an error occurs in the for loop of beiscsi_init_wrb_handle(), we
should free phwi_ctxt->be_wrbq before returning an error code to prevent
potential memleak.
Fixes: a7909b396ba7 ("[SCSI] be2iscsi: Fix dynamic CID allocation Mechanism in driver")
Signed-off-by: Dinghao Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Mike Christie <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions