diff options
-rw-r--r-- | net/ipv4/devinet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c index 3168c3de4919..b42f74617bac 100644 --- a/net/ipv4/devinet.c +++ b/net/ipv4/devinet.c | |||
@@ -1027,7 +1027,7 @@ static void inetdev_changename(struct net_device *dev, struct in_device *in_dev) | |||
1027 | memcpy(ifa->ifa_label, dev->name, IFNAMSIZ); | 1027 | memcpy(ifa->ifa_label, dev->name, IFNAMSIZ); |
1028 | if (named++ == 0) | 1028 | if (named++ == 0) |
1029 | continue; | 1029 | continue; |
1030 | dot = strchr(ifa->ifa_label, ':'); | 1030 | dot = strchr(old, ':'); |
1031 | if (dot == NULL) { | 1031 | if (dot == NULL) { |
1032 | sprintf(old, ":%d", named); | 1032 | sprintf(old, ":%d", named); |
1033 | dot = old; | 1033 | dot = old; |