diff options
author | Lance Richardson <lrichard@redhat.com> | 2016-09-24 21:01:04 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-25 03:07:44 +0300 |
commit | c2675de447f8238e7e2e7eced78fa671d42a9a7e (patch) | |
tree | 82fa2aa0b6e01042f56f38446c89676b20104f58 /net/ipv6 | |
parent | c6a77ff82fb849534748719f37f3f9086d78ed39 (diff) | |
download | linux-c2675de447f8238e7e2e7eced78fa671d42a9a7e.tar.xz |
gre: use nla_get_be32() to extract flowinfo
Eliminate a sparse endianness mismatch warning, use nla_get_be32() to
extract a __be32 value instead of nla_get_u32().
Signed-off-by: Lance Richardson <lrichard@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/ip6_gre.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ip6_gre.c b/net/ipv6/ip6_gre.c index 397e1ed3daa3..4ce74f86291b 100644 --- a/net/ipv6/ip6_gre.c +++ b/net/ipv6/ip6_gre.c @@ -1239,7 +1239,7 @@ static void ip6gre_netlink_parms(struct nlattr *data[], parms->encap_limit = nla_get_u8(data[IFLA_GRE_ENCAP_LIMIT]); if (data[IFLA_GRE_FLOWINFO]) - parms->flowinfo = nla_get_u32(data[IFLA_GRE_FLOWINFO]); + parms->flowinfo = nla_get_be32(data[IFLA_GRE_FLOWINFO]); if (data[IFLA_GRE_FLAGS]) parms->flags = nla_get_u32(data[IFLA_GRE_FLAGS]); |