mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-07 04:09:21 +00:00
firewire net: Release broadcast/fifo resources on ifdown.
Since those resources are allocated on ifup, relsase them on ifdown. Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
This commit is contained in:
parent
111534cd7a
commit
8559e7f069
1 changed files with 4 additions and 4 deletions
|
@ -1295,9 +1295,12 @@ out:
|
|||
/* ifdown */
|
||||
static int fwnet_stop(struct net_device *net)
|
||||
{
|
||||
struct fwnet_device *dev = netdev_priv(net);
|
||||
|
||||
netif_stop_queue(net);
|
||||
|
||||
/* Deallocate iso context for use by other applications? */
|
||||
fwnet_broadcast_stop(dev);
|
||||
fwnet_fifo_stop(dev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -1638,9 +1641,6 @@ static int fwnet_remove(struct device *_dev)
|
|||
if (list_empty(&dev->peer_list)) {
|
||||
unregister_netdev(net);
|
||||
|
||||
fwnet_fifo_stop(dev);
|
||||
fwnet_broadcast_stop(dev);
|
||||
|
||||
for (i = 0; dev->queued_datagrams && i < 5; i++)
|
||||
ssleep(1);
|
||||
WARN_ON(dev->queued_datagrams);
|
||||
|
|
Loading…
Reference in a new issue