Messages in this thread | | | Subject | Re: [PATCH v3] tun: avoid double free in tun_free_netdev | From | patchwork-bot+netdevbpf@kernel ... | Date | Sat, 18 Dec 2021 03:30:14 +0000 |
| |
Hello:
This patch was applied to netdev/net.git (master) by Jakub Kicinski <kuba@kernel.org>:
On Thu, 16 Dec 2021 13:25:32 -0500 you wrote: > Avoid double free in tun_free_netdev() by moving the > dev->tstats and tun->security allocs to a new ndo_init routine > (tun_net_init()) that will be called by register_netdevice(). > ndo_init is paired with the desctructor (tun_free_netdev()), > so if there's an error in register_netdevice() the destructor > will handle the frees. > > [...]
Here is the summary with links: - [v3] tun: avoid double free in tun_free_netdev https://git.kernel.org/netdev/net/c/158b515f703e
You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
| |