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 <vivien.didelot@savoirfairelinux.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent b0b38a1 commit 2118df9

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
@@ -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)