Re: [PATCH net] net: bcmasp: fix potential memory leak in bcmasp_xmit()

From: Florian Fainelli
Date: Tue Oct 15 2024 - 20:02:58 EST


On 10/14/24 07:59, Wang Hai wrote:
The bcmasp_xmit() returns NETDEV_TX_OK without freeing skb
in case of mapping fails, add dev_kfree_skb() to fix it.

Fixes: 490cb412007d ("net: bcmasp: Add support for ASP2.0 Ethernet controller")
Signed-off-by: Wang Hai <wanghai38@xxxxxxxxxx>

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