[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id:
<172189983199.31991.12505677109278779843.git-patchwork-notify@kernel.org>
Date: Thu, 25 Jul 2024 09:30:31 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Breno Leitao <leitao@...ian.org>
Cc: nbd@....name, sean.wang@...iatek.com, Mark-MC.Lee@...iatek.com,
lorenzo@...nel.org, davem@...emloft.net, edumazet@...gle.com,
kuba@...nel.org, pabeni@...hat.com, matthias.bgg@...il.com,
angelogioacchino.delregno@...labora.com, leit@...a.com,
dan.carpenter@...aro.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org
Subject: Re: [PATCH net] net: mediatek: Fix potential NULL pointer dereference in
dummy net_device handling
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@...hat.com>:
On Wed, 24 Jul 2024 01:05:23 -0700 you wrote:
> Move the freeing of the dummy net_device from mtk_free_dev() to
> mtk_remove().
>
> Previously, if alloc_netdev_dummy() failed in mtk_probe(),
> eth->dummy_dev would be NULL. The error path would then call
> mtk_free_dev(), which in turn called free_netdev() assuming dummy_dev
> was allocated (but it was not), potentially causing a NULL pointer
> dereference.
>
> [...]
Here is the summary with links:
- [net] net: mediatek: Fix potential NULL pointer dereference in dummy net_device handling
https://git.kernel.org/netdev/net/c/16f3a28cf5f8
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Powered by blists - more mailing lists