Commit ed2da03c6907800871234f5cae42db7d80de8dfc
Committed by
David S. Miller
1 parent
8ea2b17c99
Exists in
ti-lsk-linux-4.1.y
and in
12 other branches
team: forbid incorrect fall-through in notifier
There are two breaks missing there. The result is that userspace receives multiple messages which might be confusing. Introduced-by: 3d249d4c "net: introduce ethernet teaming device" Signed-off-by: Jiri Pirko <jiri@resnulli.us> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff
drivers/net/team/team.c
... | ... | @@ -2834,8 +2834,10 @@ |
2834 | 2834 | case NETDEV_UP: |
2835 | 2835 | if (netif_carrier_ok(dev)) |
2836 | 2836 | team_port_change_check(port, true); |
2837 | + break; | |
2837 | 2838 | case NETDEV_DOWN: |
2838 | 2839 | team_port_change_check(port, false); |
2840 | + break; | |
2839 | 2841 | case NETDEV_CHANGE: |
2840 | 2842 | if (netif_running(port->dev)) |
2841 | 2843 | team_port_change_check(port, |