summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMingming Cao <mmc@linux.ibm.com>2026-09-25 11:05:30 -0700
committerJakub Kicinski <kuba@kernel.org>2026-10-01 15:59:28 -0700
commit84bec0bf035258a1073ffd6f6dc8ea61806aa7d4 (patch)
treec19802af127feb29791b69e0939e940237a602e5 /tools/perf/scripts/python
parentaf0524bf4ce1a4cbd2946aa81751582951cfcab5 (diff)
downloadlinux-84bec0bf035258a1073ffd6f6dc8ea61806aa7d4.tar.gz
linux-84bec0bf035258a1073ffd6f6dc8ea61806aa7d4.zip
ibmveth: fix TX LTB and filter unwind on open-fail
out_free_buffer_pools reuses open()'s loop index for the TX LTB walk. After the pool unwind i is -1, so the TX buffers allocated earlier are leaked. request_irq() failure has the same leak. The TX-fail goto on that walk also skips dma_unmap of the filter list (pre-existing since the LTB was added). Rewrite the TX walk to real_num_tx_queues with a pointer check, and unmap the filter list before those frees. Fixes: d926793c1de9 ("ibmveth: Implement multi queue on xmit") Cc: stable@vger.kernel.org Signed-off-by: Mingming Cao <mmc@linux.ibm.com> Reviewed-by: Dave Marquardt <davemarq@linux.ibm.com> Link: https://patch.msgid.link/d14314c2b10f125f5e578782484ba3cc50564d53.1790357373.git.mmc@linux.ibm.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions