Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 233452
b: refs/heads/master
c: f87e6f4
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds authored and David S. Miller committed Feb 18, 2011
1 parent 9554220 commit 68c8cfa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 214f45c91bbda8321d9676f1197238e4663edcbb
refs/heads/master: f87e6f47933e3ebeced9bb12615e830a72cedce4
7 changes: 5 additions & 2 deletions trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1280,10 +1280,13 @@ static int __dev_close_many(struct list_head *head)

static int __dev_close(struct net_device *dev)
{
int retval;
LIST_HEAD(single);

list_add(&dev->unreg_list, &single);
return __dev_close_many(&single);
retval = __dev_close_many(&single);
list_del(&single);
return retval;
}

int dev_close_many(struct list_head *head)
Expand Down Expand Up @@ -1325,7 +1328,7 @@ int dev_close(struct net_device *dev)

list_add(&dev->unreg_list, &single);
dev_close_many(&single);

list_del(&single);
return 0;
}
EXPORT_SYMBOL(dev_close);
Expand Down

0 comments on commit 68c8cfa

Please sign in to comment.