Thread (2 messages) 2 messages, 2 authors, 2021-12-18

Re: [PATCH v3] tun: avoid double free in tun_free_netdev

flat view

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-12-18 03:30:26
Also in: lkml

Hello:

This patch was applied to netdev/net.git (master)
by Jakub Kicinski [off-list ref]:

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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help