[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <579e7722-5c97-4c63-a625-82e06697ca5d@broadcom.com>
Date: Tue, 15 Oct 2024 17:02:47 -0700
From: Florian Fainelli <florian.fainelli@...adcom.com>
To: Wang Hai <wanghai38@...wei.com>, justin.chen@...adcom.com,
davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, horms@...nel.org, zhangxiaoxu5@...wei.com
Cc: bcm-kernel-feedback-list@...adcom.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH net] net: bcmasp: fix potential memory leak in
bcmasp_xmit()
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@...wei.com>
Acked-by: Florian Fainelli <florian.fainelli@...adcom.com>
--
Florian
Powered by blists - more mailing lists