projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee39fac
)
bridge: fix the unbalanced promiscuous count when add_if failed
author
wangweidong
<
[email protected]
>
Thu, 29 May 2014 02:15:30 +0000
(10:15 +0800)
committer
David S. Miller
<
[email protected]
>
Mon, 2 Jun 2014 05:05:16 +0000
(22:05 -0700)
As commit
2796d0c648c94
("bridge: Automatically manage port
promiscuous mode."), make the add_if use dev_set_allmulti
instead of dev_set_promiscuous, so when add_if failed, we
should do dev_set_allmulti(dev, -1).
Signed-off-by: Wang Weidong <
[email protected]
>
Reviewed-by: Amos Kong <
[email protected]
>
Acked-by: Vlad Yasevich <
[email protected]
>
Acked-by: Stephen Hemminger <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/bridge/br_if.c
patch
|
blob
|
history
diff --git
a/net/bridge/br_if.c
b/net/bridge/br_if.c
index 104a811dde571173973d7082c2b1886fa4a44647..a08d2b8ebba63358979d517ee993d7ed3895ef41 100644
(file)
--- a/
net/bridge/br_if.c
+++ b/
net/bridge/br_if.c
@@
-528,7
+528,7
@@
err2:
kobject_put(&p->kobj);
p = NULL; /* kobject_put frees */
err1:
- dev_set_
promiscuity
(dev, -1);
+ dev_set_
allmulti
(dev, -1);
put_back:
dev_put(dev);
kfree(p);