Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 168753
b: refs/heads/master
c: 91e9c07
h: refs/heads/master
i:
  168751: 1f8f32d
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Nov 16, 2009
1 parent cb20a08 commit e9fb9ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 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: e29d4363174949a7a4e46f670993d7ff43342c1c
refs/heads/master: 91e9c07bd635353d1a278bdb38dbb56ac371bcb8
11 changes: 6 additions & 5 deletions trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -942,14 +942,15 @@ int dev_change_name(struct net_device *dev, const char *newname)
ret = notifier_to_errno(ret);

if (ret) {
if (err) {
printk(KERN_ERR
"%s: name change rollback failed: %d.\n",
dev->name, ret);
} else {
/* err >= 0 after dev_alloc_name() or stores the first errno */
if (err >= 0) {
err = ret;
memcpy(dev->name, oldname, IFNAMSIZ);
goto rollback;
} else {
printk(KERN_ERR
"%s: name change rollback failed: %d.\n",
dev->name, ret);
}
}

Expand Down

0 comments on commit e9fb9ec

Please sign in to comment.