Re: [PATCH net v2 4/6] net: bcm4908_enet: unmap the buffer of a dropped RX frame

From: Florian Fainelli

Date: Thu Nov 12 2026 - 21:16:41 EST


On 11/12/26 11:50, Kordian Chmielewski wrote:
When poll_rx() drops a frame (too short, or not in a single buffer),
it frees the buffer without unmapping it first, so the memory goes
back to the page allocator while still mapped for the device. Unmap it
as the path for good frames does.

Found by reading the code.

Fixes: 4dc7f09b8bec ("net: broadcom: bcm4908_enet: fix RX path possible mem leak")
Signed-off-by: Kordian Chmielewski <kudzo51@xxxxxxxxx>

Reviewed-by: Florian Fainelli <florian.fainelli@xxxxxxxxxxxx>
--
Florian