Re: [PATCH net] net: systemport: fix potential memory leak in bcm_sysport_xmit()

From: Florian Fainelli
Date: Tue Oct 15 2024 - 19:53:45 EST


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

Fixes: 80105befdb4b ("net: systemport: add Broadcom SYSTEMPORT Ethernet MAC driver")
Signed-off-by: Wang Hai <wanghai38@xxxxxxxxxx>

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