From: Li RongQing Date: Mon, 9 Jul 2012 23:56:12 +0000 (+0000) Subject: bridge: fix endian X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4715213d9cf40285492fff4092bb1fa8e982f632;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git bridge: fix endian mld->mld_maxdelay is net endian, so we should use ntohs, not htons CC: YOSHIFUJI Hideaki Signed-off-by: Li RongQing Signed-off-by: David S. Miller --- diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c index b66581208cb2..2d9a0663b848 100644 --- a/net/bridge/br_multicast.c +++ b/net/bridge/br_multicast.c @@ -1160,7 +1160,7 @@ static int br_ip6_multicast_query(struct net_bridge *br, goto out; } mld = (struct mld_msg *) icmp6_hdr(skb); - max_delay = msecs_to_jiffies(htons(mld->mld_maxdelay)); + max_delay = msecs_to_jiffies(ntohs(mld->mld_maxdelay)); if (max_delay) group = &mld->mld_mca; } else if (skb->len >= sizeof(*mld2q)) {