A NAPI poll can retain a partially assembled frame across invocations. The stop path clears that pointer without releasing its fragment references, leaking every page already attached to the frame. Free a pending fragment skb after disabling NAPI and before clearing the saved RX state. Assisted-by: LLM Signed-off-by: Linus Walleij --- drivers/net/ethernet/cortina/gemini.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/cortina/gemini.c b/drivers/net/ethernet/cortina/gemini.c index 258bb44d5570..a7096690e4be 100644 --- a/drivers/net/ethernet/cortina/gemini.c +++ b/drivers/net/ethernet/cortina/gemini.c @@ -2077,6 +2077,8 @@ static int gmac_stop(struct net_device *netdev) gmac_disable_tx_rx(netdev); gmac_stop_dma(port); napi_disable(&port->napi); + if (port->rx_skb) + napi_free_frags(&port->napi); port->rx_skb = NULL; port->rx_frag_nr = 0; port->rx_dropping = false; -- 2.55.0