Commit 8eabf95c authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller

bridge: add a missing ntohs()

grec_nsrcs is in network order, we should convert to host horder in
br_multicast_igmp3_report()
Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Acked-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e46754f8
...@@ -727,7 +727,7 @@ static int br_multicast_igmp3_report(struct net_bridge *br, ...@@ -727,7 +727,7 @@ static int br_multicast_igmp3_report(struct net_bridge *br,
group = grec->grec_mca; group = grec->grec_mca;
type = grec->grec_type; type = grec->grec_type;
len += grec->grec_nsrcs * 4; len += ntohs(grec->grec_nsrcs) * 4;
if (!pskb_may_pull(skb, len)) if (!pskb_may_pull(skb, len))
return -EINVAL; return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment