mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-12-01 08:20:44 -05:00
dsa: fix promiscuity leak on slave dev open error
DSA master netdev promiscuity counter was not being properly decremented on slave device open error path. Signed-off-by: Gilad Ben-Yossef <[email protected]> CC: Gilad Ben-Yossef <[email protected]> CC: David S. Miller <[email protected]> CC: Florian Fainelli <[email protected]> CC: Guenter Roeck <[email protected]> CC: Andrew Lunn <[email protected]> CC: Scott Feldman <[email protected]> Acked-by: Andrew Lunn <[email protected]> Acked-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
14e28b1d3c
commit
4fdeddfe04
1 changed files with 1 additions and 1 deletions
|
|
@ -112,7 +112,7 @@ static int dsa_slave_open(struct net_device *dev)
|
|||
|
||||
clear_promisc:
|
||||
if (dev->flags & IFF_PROMISC)
|
||||
dev_set_promiscuity(master, 0);
|
||||
dev_set_promiscuity(master, -1);
|
||||
clear_allmulti:
|
||||
if (dev->flags & IFF_ALLMULTI)
|
||||
dev_set_allmulti(master, -1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue