Re: [PATCH net V3] net: pds_core: Fix possible double free in error handling path

From: patchwork-bot+netdevbpf
Date: Thu Mar 07 2024 - 06:10:37 EST


Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:

On Wed, 6 Mar 2024 18:57:14 +0800 you wrote:
> When auxiliary_device_add() returns error and then calls
> auxiliary_device_uninit(), Callback function pdsc_auxbus_dev_release
> calls kfree(padev) to free memory. We shouldn't call kfree(padev)
> again in the error handling path.
>
> Fix this by cleaning up the redundant kfree() and putting
> the error handling back to where the errors happened.
>
> [...]

Here is the summary with links:
- [net,V3] net: pds_core: Fix possible double free in error handling path
https://git.kernel.org/netdev/net/c/ba18deddd6d5

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html