Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 247449
b: refs/heads/master
c: 0696c3a
h: refs/heads/master
i:
  247447: 09657fd
v: v3
  • Loading branch information
Peter Pan(潘卫平) authored and David S. Miller committed May 13, 2011
1 parent f382f10 commit ea3eb0e
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 64c7f304b81a9a92dc7046c97a10427a5997dc07
refs/heads/master: 0696c3a8acd3b7c3186dd231d65d97e05a75189f
8 changes: 4 additions & 4 deletions trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -5437,6 +5437,10 @@ int register_netdevice(struct net_device *dev)

dev->iflink = -1;

ret = dev_get_valid_name(dev, dev->name);
if (ret < 0)
goto out;

/* Init, if this function is available */
if (dev->netdev_ops->ndo_init) {
ret = dev->netdev_ops->ndo_init(dev);
Expand All @@ -5447,10 +5451,6 @@ int register_netdevice(struct net_device *dev)
}
}

ret = dev_get_valid_name(dev, dev->name);
if (ret < 0)
goto err_uninit;

dev->ifindex = dev_new_index(net);
if (dev->iflink == -1)
dev->iflink = dev->ifindex;
Expand Down

0 comments on commit ea3eb0e

Please sign in to comment.