diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/bridge/br_if.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/bridge/br_if.c b/net/bridge/br_if.c index a08d2b8ebba6..3eca3fdf8fe1 100644 --- a/net/bridge/br_if.c +++ b/net/bridge/br_if.c | |||
@@ -153,7 +153,8 @@ void br_manage_promisc(struct net_bridge *br) | |||
153 | * This lets us disable promiscuous mode and write | 153 | * This lets us disable promiscuous mode and write |
154 | * this config to hw. | 154 | * this config to hw. |
155 | */ | 155 | */ |
156 | if (br->auto_cnt <= br_auto_port(p)) | 156 | if (br->auto_cnt == 0 || |
157 | (br->auto_cnt == 1 && br_auto_port(p))) | ||
157 | br_port_clear_promisc(p); | 158 | br_port_clear_promisc(p); |
158 | else | 159 | else |
159 | br_port_set_promisc(p); | 160 | br_port_set_promisc(p); |