mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 19:13:47 +02:00
In rtl8180_init_rx_ring(), memory is allocated for skb packets and DMA
allocations in a loop. When an allocation fails, the previously
successful allocations are not freed on exit.
Fix that by jumping to err_free_rings label on error, which calls
rtl8180_free_rx_ring() to free the allocations. Remove the free of
rx_ring in rtl8180_init_rx_ring() error path, and set the freed
priv->rx_buf entry to null, to avoid double free.
Fixes:
|
||
|---|---|---|
| .. | ||
| dev.c | ||
| grf5101.c | ||
| grf5101.h | ||
| Makefile | ||
| max2820.c | ||
| max2820.h | ||
| rtl8180.h | ||
| rtl8225.c | ||
| rtl8225.h | ||
| rtl8225se.c | ||
| rtl8225se.h | ||
| sa2400.c | ||
| sa2400.h | ||