linux/drivers/net/ethernet/ibm
Mingming Cao 84bec0bf03 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: d926793c1d ("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>
2026-10-01 15:59:28 -07:00
..
emac net: emac: move setting of netops to fix crash 2026-09-24 15:37:47 +02:00
ibmveth.c ibmveth: fix TX LTB and filter unwind on open-fail 2026-10-01 15:59:28 -07:00
ibmveth.h ibmveth: Disable GSO for packets with small MSS 2026-04-27 19:07:57 -07:00
ibmvnic.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
ibmvnic.h ibmvnic: Increase max subcrq indirect entries with fallback 2025-08-26 09:45:50 +02:00
Kconfig ehea: remove the ehea driver 2026-07-02 10:43:24 +02:00
Makefile ehea: remove the ehea driver 2026-07-02 10:43:24 +02:00