summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorVille Nuorvala <vnuorval@tcs.hut.fi>2003-08-31 11:52:11 -0700
committerDavid S. Miller <davem@nuts.ninka.net>2003-08-31 11:52:11 -0700
commit9729e2c2646cd2d6859296ea7a3202be2f36805d (patch)
tree01dee952b08e17cf0f081634d767d6f91c2b080f /net
parentcec5ae5cbda46d3827ef1b79420e51bb08c13050 (diff)
[IPV6]: Use free_netdev as ip6_tunnel device destructor.
Diffstat (limited to 'net')
-rw-r--r--net/ipv6/ip6_tunnel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c
index b07190df7d3c..7940a3694211 100644
--- a/net/ipv6/ip6_tunnel.c
+++ b/net/ipv6/ip6_tunnel.c
@@ -1082,7 +1082,7 @@ static void ip6ip6_tnl_dev_setup(struct net_device *dev)
{
SET_MODULE_OWNER(dev);
dev->uninit = ip6ip6_tnl_dev_uninit;
- dev->destructor = (void (*)(struct net_device *))kfree;
+ dev->destructor = free_netdev;
dev->hard_start_xmit = ip6ip6_tnl_xmit;
dev->get_stats = ip6ip6_tnl_get_stats;
dev->do_ioctl = ip6ip6_tnl_ioctl;