diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c index 3168c3de49193922a0b1ca641bcc3680e6a5107e..b42f74617bacfffaaf3af90856cc014ecf239dd5 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) 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;