vti: remove duplicated code to fix a memory leak
authorCong Wang <amwang@redhat.com>
Sat, 29 Jun 2013 05:00:57 +0000 (13:00 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jul 2013 06:37:14 +0000 (23:37 -0700)
commitab6c7a0a43c2eaafa57583822b619b22637b49c7
tree8ff6f88e0601340b72518c870b317dcc25ea1f23
parent6c734fb8592f6768170e48e7102cb2f0a1bb9759
vti: remove duplicated code to fix a memory leak

vti module allocates dev->tstats twice: in vti_fb_tunnel_init()
and in vti_tunnel_init(), this lead to a memory leak of
dev->tstats.

Just remove the duplicated operations in vti_fb_tunnel_init().

(candidate for -stable)

Cc: Stephen Hemminger <stephen@networkplumber.org>
Cc: Saurabh Mohan <saurabh.mohan@vyatta.com>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_vti.c