mirror of
https://github.com/torvalds/linux.git
synced 2026-09-19 09:08:02 +02:00
The MACB driver has since forever leaked the outgoing SKBs that
have not yet been marked as completed. They live in queue->tx_skb
which gets freed without remorse nor checking.
macb_free_consistent() gets called in a few codepaths, but only close will
trigger the added expressions. In macb_open() and macb_alloc_consistent()
failure cases, queues' tx_skb just got allocated and are empty.
Fixes:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| macb_main.c | ||
| macb_pci.c | ||
| macb_ptp.c | ||
| macb.h | ||
| Makefile | ||