]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ip6_gre: fix endianness errors in ip6gre_err
authorSabrina Dubroca <sd@queasysnail.net>
Wed, 4 Feb 2015 14:25:09 +0000 (15:25 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Sep 2017 08:57:19 +0000 (10:57 +0200)
commit53c94358a14ffa7f3ba24d9749e8b297cdb0b520
tree84c24e5b490ecd3f7cb337d0d51c22e21226b65d
parentc8443922edb7f28ecdfe5d2b43552ebdcb33d1fb
ip6_gre: fix endianness errors in ip6gre_err

commit d1e158e2d7a0a91110b206653f0e02376e809150 upstream.

info is in network byte order, change it back to host byte order
before use. In particular, the current code sets the MTU of the tunnel
to a wrong (too big) value.

Fixes: c12b395a4664 ("gre: Support GRE over IPv6")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/ip6_gre.c