mirror of https://gitee.com/openkylin/linux.git
sit: set name of device back to struct parms
addrconf_set_sit_dstaddr will use parms->name. Signed-off-by: zhang kai <zhangkaiheb@126.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a8db57c1d2
commit
261ba78cc3
|
@ -271,6 +271,9 @@ static struct ip_tunnel *ipip6_tunnel_locate(struct net *net,
|
|||
if (ipip6_tunnel_create(dev) < 0)
|
||||
goto failed_free;
|
||||
|
||||
if (!parms->name[0])
|
||||
strcpy(parms->name, dev->name);
|
||||
|
||||
return nt;
|
||||
|
||||
failed_free:
|
||||
|
|
Loading…
Reference in New Issue