Skip to content

Commit 2118df9

Browse files
viviendavem330
authored andcommitted
net: dsa: return after vlan prepare phase
The current code does not return after successfully preparing the VLAN addition on every ports member of a it. Fix this. Fixes: 1ca4aa9 ("net: dsa: check VLAN capability of every switch") Signed-off-by: Vivien Didelot <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b0b38a1 commit 2118df9

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
@@ -182,6 +182,8 @@ static int dsa_switch_vlan_add(struct dsa_switch *ds,
182182
if (err)
183183
return err;
184184
}
185+
186+
return 0;
185187
}
186188

187189
for_each_set_bit(port, members, ds->num_ports)

0 commit comments

Comments
 (0)