aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-perl.c
diff options
context:
space:
mode:
authorZhipeng Lu <[email protected]>2024-01-12 16:55:23 +0800
committerLeon Romanovsky <[email protected]>2024-01-25 11:56:27 +0200
commit809aa64ebff51eb170ee31a95f83b2d21efa32e2 (patch)
treeeeb9227b04f55dbc632884290501384e3a322578 /tools/perf/util/scripting-engines/trace-event-perl.c
parent6613476e225e090cc9aad49be7fa504e290dd33d (diff)
IB/hfi1: Fix a memleak in init_credit_return
When dma_alloc_coherent fails to allocate dd->cr_base[i].va, init_credit_return should deallocate dd->cr_base and dd->cr_base[i] that allocated before. Or those resources would be never freed and a memleak is triggered. Fixes: 7724105686e7 ("IB/hfi1: add driver files") Signed-off-by: Zhipeng Lu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: Dennis Dalessandro <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions