Commit e3d06860 authored by Stephen Hemminger's avatar Stephen Hemminger

[NET]: free_netdev - misc drivers.

s/kfree/free_netdev/ in cleanup routines of a bunch
of different network drivers.
parent aee11891
......@@ -609,7 +609,7 @@ static int net_remove(char *str)
unregister_netdev(dev);
list_del(&device->list);
kfree(device);
free_netdev(device);
return(0);
}
......
......@@ -502,7 +502,7 @@ static void ether1394_remove_host (struct hpsb_host *host)
if (hi->dev) {
unregister_netdev (hi->dev);
kfree(hi->dev);
free_netdev(hi->dev);
}
}
......
......@@ -334,7 +334,7 @@ hysdn_net_release(hysdn_card * card)
flush_tx_buffers((struct net_local *) dev); /* empty buffers */
unregister_netdev(dev); /* release the device */
kfree(dev); /* release the memory allocated */
free_netdev(dev); /* release the memory allocated */
if (card->debug_flags & LOG_NET_INIT)
hysdn_addlog(card, "network device deleted");
......
......@@ -2708,7 +2708,7 @@ ctc_free_netdevice(struct net_device * dev, int free_dev)
}
#ifdef MODULE
if (free_dev)
kfree(dev);
free_netdev(dev);
#endif
}
......
......@@ -1654,7 +1654,7 @@ netiucv_free_netdevice(struct net_device *dev)
kfree_fsm(privptr->fsm);
kfree(privptr);
}
kfree(dev);
free_netdev(dev);
}
static ssize_t
......
......@@ -961,7 +961,7 @@ static void catc_disconnect(struct usb_interface *intf)
usb_free_urb(catc->tx_urb);
usb_free_urb(catc->rx_urb);
usb_free_urb(catc->irq_urb);
kfree(catc->netdev);
free_netdev(catc->netdev);
kfree(catc);
}
}
......
......@@ -1189,7 +1189,7 @@ static void kaweth_disconnect(struct usb_interface *intf)
kaweth_dbg("Unregistering net device");
unregister_netdev(kaweth->net);
kfree(kaweth->net);
free_netdev(kaweth->net);
}
usb_free_urb(kaweth->rx_urb);
......
......@@ -1310,7 +1310,7 @@ static void pegasus_disconnect(struct usb_interface *intf)
free_skb_pool(pegasus);
if (pegasus->rx_skb)
dev_kfree_skb(pegasus->rx_skb);
kfree(pegasus->net);
free_netdev(pegasus->net);
kfree(pegasus);
}
......
......@@ -870,7 +870,7 @@ static void rtl8150_disconnect(struct usb_interface *intf)
free_skb_pool(dev);
if (dev->rx_skb)
dev_kfree_skb(dev->rx_skb);
kfree(dev->netdev);
free_netdev(dev->netdev);
kfree(dev->intr_buff);
kfree(dev);
}
......
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