Skip to content

Commit 8559e7f

Browse files
yoshfujiStefan Richter
authored andcommitted
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>
1 parent 111534c commit 8559e7f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎drivers/firewire/net.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,9 +1295,12 @@ static int fwnet_open(struct net_device *net)
12951295
/* ifdown */
12961296
static int fwnet_stop(struct net_device *net)
12971297
{
1298+
struct fwnet_device *dev = netdev_priv(net);
1299+
12981300
netif_stop_queue(net);
12991301

1300-
/* Deallocate iso context for use by other applications? */
1302+
fwnet_broadcast_stop(dev);
1303+
fwnet_fifo_stop(dev);
13011304

13021305
return 0;
13031306
}
@@ -1638,9 +1641,6 @@ static int fwnet_remove(struct device *_dev)
16381641
if (list_empty(&dev->peer_list)) {
16391642
unregister_netdev(net);
16401643

1641-
fwnet_fifo_stop(dev);
1642-
fwnet_broadcast_stop(dev);
1643-
16441644
for (i = 0; dev->queued_datagrams && i < 5; i++)
16451645
ssleep(1);
16461646
WARN_ON(dev->queued_datagrams);

0 commit comments

Comments
 (0)