]> git.ipfire.org Git - people/arne_f/kernel.git/commitdiff
net: dsa: return after vlan prepare phase
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Wed, 8 Nov 2017 15:50:10 +0000 (10:50 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Nov 2017 06:45:09 +0000 (15:45 +0900)
The current code does not return after successfully preparing the VLAN
addition on every ports member of a it. Fix this.

Fixes: 1ca4aa9cd4cc ("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>
net/dsa/switch.c

index 73746fa148f11466d03ca81efb8c4e890e836726..1e2929f4290a0d3799b2d8583fe32a0d4dc96080 100644 (file)
@@ -182,6 +182,8 @@ static int dsa_switch_vlan_add(struct dsa_switch *ds,
                        if (err)
                                return err;
                }
+
+               return 0;
        }
 
        for_each_set_bit(port, members, ds->num_ports)