diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2011-04-17 20:52:51 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-17 20:52:51 -0400 |
commit | 28674b97cfb907b0b3de7b7fea89efda1e65f34e (patch) | |
tree | 8ce41fb220a4ea54fc5d92454c106d186e1c5433 /net/bridge | |
parent | 2ed28baa7076083b56c1e70ccd927b7870117c59 (diff) |
bridge: fix accidental creation of sysfs directory
Commit bb900b27a2f49b37bc38c08e656ea13048fee13b ("bridge: allow
creating bridge devices with netlink") introduced a bug in net-next
because of a typo in notifier. Every device would have the sysfs
bridge directory (and files).
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge')
-rw-r--r-- | net/bridge/br_notify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_notify.c b/net/bridge/br_notify.c index 7a03bb975375..606b323e8a0c 100644 --- a/net/bridge/br_notify.c +++ b/net/bridge/br_notify.c | |||
@@ -37,7 +37,7 @@ static int br_device_event(struct notifier_block *unused, unsigned long event, v | |||
37 | int err; | 37 | int err; |
38 | 38 | ||
39 | /* register of bridge completed, add sysfs entries */ | 39 | /* register of bridge completed, add sysfs entries */ |
40 | if ((dev->priv_flags && IFF_EBRIDGE) && event == NETDEV_REGISTER) { | 40 | if ((dev->priv_flags & IFF_EBRIDGE) && event == NETDEV_REGISTER) { |
41 | br_sysfs_addbr(dev); | 41 | br_sysfs_addbr(dev); |
42 | return NOTIFY_DONE; | 42 | return NOTIFY_DONE; |
43 | } | 43 | } |