diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-04-20 03:20:05 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-20 18:51:57 -0700 |
commit | 8eabf95cb17253a3ac72b1a62ce8a80b3efecd62 (patch) | |
tree | bed6cb45424195ce5dae4c92948e69cd04786e5d /net/bridge/br_multicast.c | |
parent | e46754f8c9333170f11780d8e3a70da1b1a88338 (diff) | |
download | kernel_samsung_smdk4412-8eabf95cb17253a3ac72b1a62ce8a80b3efecd62.zip kernel_samsung_smdk4412-8eabf95cb17253a3ac72b1a62ce8a80b3efecd62.tar.gz kernel_samsung_smdk4412-8eabf95cb17253a3ac72b1a62ce8a80b3efecd62.tar.bz2 |
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: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_multicast.c')
-rw-r--r-- | net/bridge/br_multicast.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c index f29ada8..386c1536 100644 --- a/net/bridge/br_multicast.c +++ b/net/bridge/br_multicast.c @@ -727,7 +727,7 @@ static int br_multicast_igmp3_report(struct net_bridge *br, group = grec->grec_mca; type = grec->grec_type; - len += grec->grec_nsrcs * 4; + len += ntohs(grec->grec_nsrcs) * 4; if (!pskb_may_pull(skb, len)) return -EINVAL; |