]> err.no Git - linux-2.6/blobdiff - net/ipv4/devinet.c
[POWERPC] CPM: Rename commproc to cpm1 and cpm2_common.c to cpm2.c
[linux-2.6] / net / ipv4 / devinet.c
index 3168c3de49193922a0b1ca641bcc3680e6a5107e..b42f74617bacfffaaf3af90856cc014ecf239dd5 100644 (file)
@@ -1027,7 +1027,7 @@ static void inetdev_changename(struct net_device *dev, struct in_device *in_dev)
                memcpy(ifa->ifa_label, dev->name, IFNAMSIZ);
                if (named++ == 0)
                        continue;
-               dot = strchr(ifa->ifa_label, ':');
+               dot = strchr(old, ':');
                if (dot == NULL) {
                        sprintf(old, ":%d", named);
                        dot = old;