Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188013
b: refs/heads/master
c: bec68ff
h: refs/heads/master
i:
  188011: de5fa2a
v: v3
  • Loading branch information
YOSHIFUJI Hideaki authored and David S. Miller committed Mar 13, 2010
1 parent 97a3d44 commit 55754e0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c251c7f738cd94eb3a1febda318078c661eccb4d
refs/heads/master: bec68ff1637ca00bb1585a03a7be8a13380084de
11 changes: 7 additions & 4 deletions trunk/net/bridge/br_multicast.c
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,7 @@ static int br_multicast_query(struct net_bridge *br,
unsigned long max_delay;
unsigned long now = jiffies;
__be32 group;
int err = 0;

spin_lock(&br->multicast_lock);
if (!netif_running(br->dev) ||
Expand All @@ -841,12 +842,14 @@ static int br_multicast_query(struct net_bridge *br,
group = 0;
}
} else {
if (!pskb_may_pull(skb, sizeof(struct igmpv3_query)))
return -EINVAL;
if (!pskb_may_pull(skb, sizeof(struct igmpv3_query))) {
err = -EINVAL;
goto out;
}

ih3 = igmpv3_query_hdr(skb);
if (ih3->nsrcs)
return 0;
goto out;

max_delay = ih3->code ? 1 :
IGMPV3_MRC(ih3->code) * (HZ / IGMP_TIMER_SCALE);
Expand Down Expand Up @@ -876,7 +879,7 @@ static int br_multicast_query(struct net_bridge *br,

out:
spin_unlock(&br->multicast_lock);
return 0;
return err;
}

static void br_multicast_leave_group(struct net_bridge *br,
Expand Down

0 comments on commit 55754e0

Please sign in to comment.