]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ipip: fix one sparse error
authorEric Dumazet <edumazet@google.com>
Fri, 15 May 2015 15:58:45 +0000 (08:58 -0700)
committerLuis Henriques <luis.henriques@canonical.com>
Wed, 15 Jul 2015 09:01:16 +0000 (10:01 +0100)
commit 252a8fbe819d041b29789e2035cd1760f373345f upstream.

make C=2 CF=-D__CHECK_ENDIAN__ net/ipv4/ipip.o
  CHECK   net/ipv4/ipip.c
net/ipv4/ipip.c:254:27: warning: incorrect type in assignment (different base types)
net/ipv4/ipip.c:254:27:    expected restricted __be32 [addressable] [usertype] o_key
net/ipv4/ipip.c:254:27:    got restricted __be16 [addressable] [usertype] i_flags

Fixes: 3b7b514f44bf ("ipip: fix a regression in ioctl")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
net/ipv4/ipip.c

index 62eaa005e14610237f9e8a6016c366ba6d6b09cf..2299f9fafd86d887a91f47f920e3f6528a7d9597 100644 (file)
@@ -249,7 +249,8 @@ ipip_tunnel_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
                        return -EINVAL;
        }
 
-       p.i_key = p.o_key = p.i_flags = p.o_flags = 0;
+       p.i_key = p.o_key = 0;
+       p.i_flags = p.o_flags = 0;
        if (p.iph.ttl)
                p.iph.frag_off |= htons(IP_DF);