Commit 4f0a68ae authored by Patrick McHardy's avatar Patrick McHardy

[IPV4]: Fix ipip_fb_tunnel_dev leak in ipip_fini

Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
parent 277eefc4
...@@ -246,7 +246,6 @@ static struct ip_tunnel * ipip_tunnel_locate(struct ip_tunnel_parm *parms, int c ...@@ -246,7 +246,6 @@ static struct ip_tunnel * ipip_tunnel_locate(struct ip_tunnel_parm *parms, int c
nt = dev->priv; nt = dev->priv;
SET_MODULE_OWNER(dev); SET_MODULE_OWNER(dev);
dev->init = ipip_tunnel_init; dev->init = ipip_tunnel_init;
dev->destructor = free_netdev;
nt->parms = *parms; nt->parms = *parms;
if (register_netdevice(dev) < 0) { if (register_netdevice(dev) < 0) {
...@@ -784,6 +783,7 @@ static void ipip_tunnel_setup(struct net_device *dev) ...@@ -784,6 +783,7 @@ static void ipip_tunnel_setup(struct net_device *dev)
dev->get_stats = ipip_tunnel_get_stats; dev->get_stats = ipip_tunnel_get_stats;
dev->do_ioctl = ipip_tunnel_ioctl; dev->do_ioctl = ipip_tunnel_ioctl;
dev->change_mtu = ipip_tunnel_change_mtu; dev->change_mtu = ipip_tunnel_change_mtu;
dev->destructor = free_netdev;
dev->type = ARPHRD_TUNNEL; dev->type = ARPHRD_TUNNEL;
dev->hard_header_len = LL_MAX_HEADER + sizeof(struct iphdr); dev->hard_header_len = LL_MAX_HEADER + sizeof(struct iphdr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment