From 9729e2c2646cd2d6859296ea7a3202be2f36805d Mon Sep 17 00:00:00 2001 From: Ville Nuorvala Date: Sun, 31 Aug 2003 11:52:11 -0700 Subject: [IPV6]: Use free_netdev as ip6_tunnel device destructor. --- net/ipv6/ip6_tunnel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net') 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; -- cgit v1.2.3