Message ID | CAHA+R7PUF0Bh-fmJGiNx37-O7Nig2FxMON88pNcZPWPCJ7_CKA@mail.gmail.com |
---|---|
State | RFC, archived |
Delegated to: | David Miller |
Headers | show |
diff --git a/net/ipv4/ip_tunnel.c b/net/ipv4/ip_tunnel.c index 289c6ee..e1dce3b 100644 --- a/net/ipv4/ip_tunnel.c +++ b/net/ipv4/ip_tunnel.c @@ -735,6 +735,8 @@ int ip_tunnel_ioctl(struct net_device *dev, struct ip_tunnel_parm *p, int cmd) if (t == NULL) t = netdev_priv(dev); } + /* Device name might have been changed */ + strlcpy(t->parms.name, t->dev->name, IFNAMSIZ); memcpy(p, &t->parms, sizeof(*p)); break;