diff options
author | Jakub Kicinski <kuba@kernel.org> | 2021-10-12 09:06:34 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-10-13 09:41:37 -0700 |
commit | 5a1b7e1a532557e3af48c3ed7e61f3e757ee09ea (patch) | |
tree | 4b622bd13a068d6cd5111702e81069208bc43b6f /net/ipv4/ip_tunnel.c | |
parent | 20c3d9e45ba630a7156d682a40988c0e96be1b92 (diff) | |
download | linux-5a1b7e1a532557e3af48c3ed7e61f3e757ee09ea.tar.bz2 |
ip: use dev_addr_set() in tunnels
Use dev_addr_set() instead of writing to netdev->dev_addr
directly in ip tunnels drivers.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv4/ip_tunnel.c')
-rw-r--r-- | net/ipv4/ip_tunnel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_tunnel.c b/net/ipv4/ip_tunnel.c index fe9101d3d69e..5a473319d3a5 100644 --- a/net/ipv4/ip_tunnel.c +++ b/net/ipv4/ip_tunnel.c @@ -834,7 +834,7 @@ static void ip_tunnel_update(struct ip_tunnel_net *itn, t->parms.i_key = p->i_key; t->parms.o_key = p->o_key; if (dev->type != ARPHRD_ETHER) { - memcpy(dev->dev_addr, &p->iph.saddr, 4); + __dev_addr_set(dev, &p->iph.saddr, 4); memcpy(dev->broadcast, &p->iph.daddr, 4); } ip_tunnel_add(itn, t); |