aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2009-11-17 03:05:02 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-17 03:05:02 -0500
commita2bfbc072e279ff81e6b336acff612b9bc2e5281 (patch)
tree89cfe21911e1539e1b7f89d8a10d42abecba2a18 /net/core
parent5c427ff9e4cc61625d48172ea082ae99e21eea6a (diff)
parent82b3cc1a2f5e46300a9dec4a8cc8106dc20a4c23 (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: drivers/net/can/Kconfig
Diffstat (limited to 'net/core')
-rw-r--r--net/core/dev.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 4b24d79414e3..d867522290b9 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -999,14 +999,15 @@ rollback:
999 ret = notifier_to_errno(ret); 999 ret = notifier_to_errno(ret);
1000 1000
1001 if (ret) { 1001 if (ret) {
1002 if (err) { 1002 /* err >= 0 after dev_alloc_name() or stores the first errno */
1003 printk(KERN_ERR 1003 if (err >= 0) {
1004 "%s: name change rollback failed: %d.\n",
1005 dev->name, ret);
1006 } else {
1007 err = ret; 1004 err = ret;
1008 memcpy(dev->name, oldname, IFNAMSIZ); 1005 memcpy(dev->name, oldname, IFNAMSIZ);
1009 goto rollback; 1006 goto rollback;
1007 } else {
1008 printk(KERN_ERR
1009 "%s: name change rollback failed: %d.\n",
1010 dev->name, ret);
1010 } 1011 }
1011 } 1012 }
1012 1013