Skip to content

Commit b0b38a1

Browse files
viviendavem330
authored andcommitted
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: 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]>
1 parent 0eb96bf commit b0b38a1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

net/dsa/switch.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ static int dsa_switch_mdb_add(struct dsa_switch *ds,
133133
if (err)
134134
return err;
135135
}
136+
137+
return 0;
136138
}
137139

138140
for_each_set_bit(port, group, ds->num_ports)

0 commit comments

Comments
 (0)