Commit 8559e7f0 authored by YOSHIFUJI Hideaki's avatar YOSHIFUJI Hideaki Committed by Stefan Richter

firewire net: Release broadcast/fifo resources on ifdown.

Since those resources are allocated on ifup, relsase them on ifdown.
Signed-off-by: default avatarYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
parent 111534cd
...@@ -1295,9 +1295,12 @@ static int fwnet_open(struct net_device *net) ...@@ -1295,9 +1295,12 @@ static int fwnet_open(struct net_device *net)
/* ifdown */ /* ifdown */
static int fwnet_stop(struct net_device *net) static int fwnet_stop(struct net_device *net)
{ {
struct fwnet_device *dev = netdev_priv(net);
netif_stop_queue(net); netif_stop_queue(net);
/* Deallocate iso context for use by other applications? */ fwnet_broadcast_stop(dev);
fwnet_fifo_stop(dev);
return 0; return 0;
} }
...@@ -1638,9 +1641,6 @@ static int fwnet_remove(struct device *_dev) ...@@ -1638,9 +1641,6 @@ static int fwnet_remove(struct device *_dev)
if (list_empty(&dev->peer_list)) { if (list_empty(&dev->peer_list)) {
unregister_netdev(net); unregister_netdev(net);
fwnet_fifo_stop(dev);
fwnet_broadcast_stop(dev);
for (i = 0; dev->queued_datagrams && i < 5; i++) for (i = 0; dev->queued_datagrams && i < 5; i++)
ssleep(1); ssleep(1);
WARN_ON(dev->queued_datagrams); WARN_ON(dev->queued_datagrams);
......
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