Re: [PATCH net] ax25: Replace kfree() in ax25_dev_free() with ax25_dev_put()
From: patchwork-bot+netdevbpf
Date: Sat Jun 01 2024 - 19:00:41 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Thu, 30 May 2024 13:17:33 +0800 you wrote:
> The object "ax25_dev" is managed by reference counting. Thus it should
> not be directly released by kfree(), replace with ax25_dev_put().
>
> Fixes: d01ffb9eee4a ("ax25: add refcount in ax25_dev to avoid UAF bugs")
> Suggested-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> Signed-off-by: Duoming Zhou <duoming@xxxxxxxxxx>
>
> [...]
Here is the summary with links:
- [net] ax25: Replace kfree() in ax25_dev_free() with ax25_dev_put()
https://git.kernel.org/netdev/net/c/166fcf86cd34
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html