Message ID | 20210329191254.137053-1-eric.dumazet@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 40cb881b5aaa0b69a7d93dec8440d5c62dae299f |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net-next] ip6_vti: proper dev_{hold|put} in ndo_[un]init methods | expand |
Context | Check | Description |
---|---|---|
netdev/cover_letter | success | Link |
netdev/fixes_present | success | Link |
netdev/patch_count | success | Link |
netdev/tree_selection | success | Clearly marked for net-next |
netdev/subject_prefix | success | Link |
netdev/cc_maintainers | warning | 4 maintainers not CCed: yoshfuji@linux-ipv6.org steffen.klassert@secunet.com dsahern@kernel.org herbert@gondor.apana.org.au |
netdev/source_inline | success | Was 0 now: 0 |
netdev/verify_signedoff | success | Link |
netdev/module_param | success | Was 0 now: 0 |
netdev/build_32bit | success | Errors and warnings before: 0 this patch: 0 |
netdev/kdoc | success | Errors and warnings before: 0 this patch: 0 |
netdev/verify_fixes | success | Link |
netdev/checkpatch | warning | WARNING: Possible repeated word: 'Google' |
netdev/build_allmodconfig_warn | success | Errors and warnings before: 0 this patch: 0 |
netdev/header_inline | success | Link |
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Mon, 29 Mar 2021 12:12:54 -0700 you wrote: > From: Eric Dumazet <edumazet@google.com> > > After adopting CONFIG_PCPU_DEV_REFCNT=n option, syzbot was able to trigger > a warning [1] > > Issue here is that: > > [...] Here is the summary with links: - [net-next] ip6_vti: proper dev_{hold|put} in ndo_[un]init methods https://git.kernel.org/netdev/net-next/c/40cb881b5aaa You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
diff --git a/net/ipv6/ip6_vti.c b/net/ipv6/ip6_vti.c index f10e7a72ea6248e5ec1fbdb8b4e1c4e0e874cb96..a018afdb3e062c9e664d4ca424176a859f0a332c 100644 --- a/net/ipv6/ip6_vti.c +++ b/net/ipv6/ip6_vti.c @@ -193,7 +193,6 @@ static int vti6_tnl_create2(struct net_device *dev) strcpy(t->parms.name, dev->name); - dev_hold(dev); vti6_tnl_link(ip6n, t); return 0; @@ -932,6 +931,7 @@ static inline int vti6_dev_init_gen(struct net_device *dev) dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); if (!dev->tstats) return -ENOMEM; + dev_hold(dev); return 0; }