From: Nicolas Dichtel Date: Thu, 15 Nov 2012 04:06:42 +0000 (+0000) Subject: ip6tnl: fix sparse warnings in ip6_tnl_netlink_parms() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1ff05fb7114a6b4118e0f7d89fed2659f7131b0a;p=linux-beck.git ip6tnl: fix sparse warnings in ip6_tnl_netlink_parms() This change fixes a sparse warning triggered by casting the flowinfo from netlink messages in an u32 instead of be32. This change corrects that in order to resolve the sparse warning. Reported-by: Fengguang Wu Signed-off-by: Nicolas Dichtel Signed-off-by: David S. Miller --- diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c index ab4d05633bfd..bf3a549267d3 100644 --- a/net/ipv6/ip6_tunnel.c +++ b/net/ipv6/ip6_tunnel.c @@ -1568,7 +1568,7 @@ static void ip6_tnl_netlink_parms(struct nlattr *data[], parms->encap_limit = nla_get_u8(data[IFLA_IPTUN_ENCAP_LIMIT]); if (data[IFLA_IPTUN_FLOWINFO]) - parms->flowinfo = nla_get_u32(data[IFLA_IPTUN_FLOWINFO]); + parms->flowinfo = nla_get_be32(data[IFLA_IPTUN_FLOWINFO]); if (data[IFLA_IPTUN_FLAGS]) parms->flags = nla_get_u32(data[IFLA_IPTUN_FLAGS]);