diff options
Diffstat (limited to 'net/bridge/br_sysfs_if.c')
-rw-r--r-- | net/bridge/br_sysfs_if.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/bridge/br_sysfs_if.c b/net/bridge/br_sysfs_if.c index 351af6b36ee1..e561cd59b8a6 100644 --- a/net/bridge/br_sysfs_if.c +++ b/net/bridge/br_sysfs_if.c | |||
@@ -49,7 +49,9 @@ static BRPORT_ATTR(_name, S_IRUGO | S_IWUSR, \ | |||
49 | static int store_flag(struct net_bridge_port *p, unsigned long v, | 49 | static int store_flag(struct net_bridge_port *p, unsigned long v, |
50 | unsigned long mask) | 50 | unsigned long mask) |
51 | { | 51 | { |
52 | unsigned long flags = p->flags; | 52 | unsigned long flags; |
53 | |||
54 | flags = p->flags; | ||
53 | 55 | ||
54 | if (v) | 56 | if (v) |
55 | flags |= mask; | 57 | flags |= mask; |
@@ -58,6 +60,7 @@ static int store_flag(struct net_bridge_port *p, unsigned long v, | |||
58 | 60 | ||
59 | if (flags != p->flags) { | 61 | if (flags != p->flags) { |
60 | p->flags = flags; | 62 | p->flags = flags; |
63 | br_port_flags_change(p, mask); | ||
61 | br_ifinfo_notify(RTM_NEWLINK, p); | 64 | br_ifinfo_notify(RTM_NEWLINK, p); |
62 | } | 65 | } |
63 | return 0; | 66 | return 0; |