Skip to contentSkip to conversation

team: forbid incorrect fall-through in notifier

PATCH Applied Jiri Pirko 2 participants 2 messages Apr 23, 2014 – Apr 24, 2014

Subsystems (3)
lore
Share & tools
lore

Jiri Pirko

author maintainer
#0 lore raw

PATCH 1/1 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"
---
 drivers/net/team/team.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/team/team.c +2 -0
index 33008c1..767fe61 100644
@@ -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,
Signature · 1 line
1.9.0
maintainer Applied
#1 lore raw

From: Jiri Pirko <[email protected]>
Date: Wed, 23 Apr 2014 14:17:55 +0200

Quoted 5 lines

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"

Applied, thanks Jiri.