mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00
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>
This commit is contained in:
parent
8ea2b17c99
commit
ed2da03c69
1 changed files with 2 additions and 0 deletions
|
@ -2834,8 +2834,10 @@ static int team_device_event(struct notifier_block *unused,
|
|||
case NETDEV_UP:
|
||||
if (netif_carrier_ok(dev))
|
||||
team_port_change_check(port, true);
|
||||
break;
|
||||
case NETDEV_DOWN:
|
||||
team_port_change_check(port, false);
|
||||
break;
|
||||
case NETDEV_CHANGE:
|
||||
if (netif_running(port->dev))
|
||||
team_port_change_check(port,
|
||||
|
|
Loading…
Add table
Reference in a new issue