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 <privat@egil-hjelmeland.no> Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 0eb96bf commit b0b38a1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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)