Skip to contentSkip to conversation

bridge: fix accidental creation of sysfs directory

PATCH Applied Stephen Hemminger 2 participants 2 messages Apr 16, 2011 – Apr 18, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bridge: fix accidental creation of sysfs directory

Commit bb900b27a2f49b37bc38c08e656ea13048fee13b introduced a bug in net-next because of a typo in notifier. Every device would have the sysfs bridge directory (and files).

net/bridge/br_notify.c +1 -1
@@ -37,7 +37,7 @@ static int br_device_event(struct notifi
 	int err;
 
 	/* register of bridge completed, add sysfs entries */
-	if ((dev->priv_flags && IFF_EBRIDGE) && event == NETDEV_REGISTER) {
+	if ((dev->priv_flags & IFF_EBRIDGE) && event == NETDEV_REGISTER) {
 		br_sysfs_addbr(dev);
 		return NOTIFY_DONE;
 	}
maintainer Applied
#1 lore raw

From: Stephen Hemminger <[email protected]>
Date: Sat, 16 Apr 2011 09:09:15 -0700

Quoted 5 lines

Commit bb900b27a2f49b37bc38c08e656ea13048fee13b introduced a bug in net-next because of a typo in notifier. Every device would have the sysfs bridge directory (and files).

Applied, thanks Stephen.