From: YOSHIFUJI Hideaki / 吉藤英明 Date: Mon, 15 Mar 2010 19:27:00 +0000 (+0000) Subject: bridge br_multicast: Fix handling of Max Response Code in IGMPv3 message. X-Git-Tag: v4.14-rc1~19296^2~219 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ba8c9ec25465cd0680b80c0f5836f558e3b972d;p=platform%2Fkernel%2Flinux-rpi.git bridge br_multicast: Fix handling of Max Response Code in IGMPv3 message. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller --- diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c index 398221e81be5..19618f25b4c6 100644 --- a/net/bridge/br_multicast.c +++ b/net/bridge/br_multicast.c @@ -852,8 +852,8 @@ static int br_multicast_query(struct net_bridge *br, if (ih3->nsrcs) goto out; - max_delay = ih3->code ? 1 : - IGMPV3_MRC(ih3->code) * (HZ / IGMP_TIMER_SCALE); + max_delay = ih3->code ? + IGMPV3_MRC(ih3->code) * (HZ / IGMP_TIMER_SCALE) : 1; } if (!group)