diff options
author | Eric Dumazet <edumazet@google.com> | 2015-10-03 02:54:31 +0300 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2015-11-14 19:04:28 +0300 |
commit | 1df1b617c4884a39627da12a64caf5755951b026 (patch) | |
tree | 080d4c7e816e398ea8143f6090d5c5631916f9cb /include/net | |
parent | 33b0e82c27c542d0b7002f4f253b257ab37a2faf (diff) | |
download | linux-1df1b617c4884a39627da12a64caf5755951b026.tar.xz |
sit: fix sit0 percpu double allocations
[ Upstream commit 4ece9009774596ee3df0acba65a324b7ea79387c ]
sit0 device allocates its percpu storage twice :
- One time in ipip6_tunnel_init()
- One time in ipip6_fb_tunnel_init()
Thus we leak 48 bytes per possible cpu per network namespace dismantle.
ipip6_fb_tunnel_init() can be much simpler and does not
return an error, and should be called after register_netdev()
Note that ipip6_tunnel_clone_6rd() also needs to be called
after register_netdev() (calling ipip6_tunnel_init())
Fixes: ebe084aafb7e ("sit: Use ipip6_tunnel_init as the ndo_init function.")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Cc: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions