summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorLance Richardson <lrichard@redhat.com>2016-09-24 21:01:04 +0300
committerDavid S. Miller <davem@davemloft.net>2016-09-25 03:07:44 +0300
commitc2675de447f8238e7e2e7eced78fa671d42a9a7e (patch)
tree82fa2aa0b6e01042f56f38446c89676b20104f58 /net
parentc6a77ff82fb849534748719f37f3f9086d78ed39 (diff)
downloadlinux-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')
-rw-r--r--net/ipv6/ip6_gre.c2
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]);