Skip to content

Commit

Permalink
net: dsa: return after mdb prepare phase
Browse files Browse the repository at this point in the history
The current code does not return after successfully preparing the MDB
addition on every ports member of a multicast group. Fix this.

Fixes: a1a6b7e ("net: dsa: add cross-chip multicast support")
Reported-by: Egil Hjelmeland <[email protected]>
Signed-off-by: Vivien Didelot <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
vivien authored and davem330 committed Nov 11, 2017
1 parent 0eb96bf commit b0b38a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/dsa/switch.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ static int dsa_switch_mdb_add(struct dsa_switch *ds,
if (err)
return err;
}

return 0;
}

for_each_set_bit(port, group, ds->num_ports)
Expand Down

0 comments on commit b0b38a1

Please sign in to comment.