net: dsa: return after mdb prepare phase

The current code does not return after successfully preparing the MDB
addition on every ports member of a multicast group. Fix this.

Fixes: a1a6b7ea7f2d ("net: dsa: add cross-chip multicast support")
Reported-by: Egil Hjelmeland <>
Signed-off-by: Vivien Didelot <>
Reviewed-by: Andrew Lunn <>
Signed-off-by: David S. Miller <>
1 file changed