Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175572
b: refs/heads/master
c: e93737b
h: refs/heads/master
v: v3
  • Loading branch information
Krishna Kumar authored and David S. Miller committed Dec 11, 2009
1 parent 00a3317 commit 0ced190
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: bbb84619c378414118fd4f1778125cd246c71e53
refs/heads/master: e93737b0f0159a61772894943199fd3b6f315641
10 changes: 6 additions & 4 deletions trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -4771,21 +4771,23 @@ static void net_set_todo(struct net_device *dev)

static void rollback_registered_many(struct list_head *head)
{
struct net_device *dev;
struct net_device *dev, *tmp;

BUG_ON(dev_boot_phase);
ASSERT_RTNL();

list_for_each_entry(dev, head, unreg_list) {
list_for_each_entry_safe(dev, tmp, head, unreg_list) {
/* Some devices call without registering
* for initialization unwind.
* for initialization unwind. Remove those
* devices and proceed with the remaining.
*/
if (dev->reg_state == NETREG_UNINITIALIZED) {
pr_debug("unregister_netdevice: device %s/%p never "
"was registered\n", dev->name, dev);

WARN_ON(1);
return;
list_del(&dev->unreg_list);
continue;
}

BUG_ON(dev->reg_state != NETREG_REGISTERED);
Expand Down

0 comments on commit 0ced190

Please sign in to comment.