diff options
author | 2018-03-26 01:16:47 +0800 | |
---|---|---|
committer | 2018-03-26 12:51:06 -0400 | |
commit | 9f5a90c107741b864398f4ac0014711a8c1d8474 (patch) | |
tree | 92874b623663faa0b49a6f7497aa1b3c410d8784 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bonding: move dev_mc_sync after master_upper_dev_link in bond_enslave (diff) | |
download | wireguard-linux-9f5a90c107741b864398f4ac0014711a8c1d8474.tar.xz wireguard-linux-9f5a90c107741b864398f4ac0014711a8c1d8474.zip |
bonding: process the err returned by dev_set_allmulti properly in bond_enslave
When dev_set_promiscuity(1) succeeds but dev_set_allmulti(1) fails,
dev_set_promiscuity(-1) should be done before going to the err path.
Otherwise, dev->promiscuity will leak.
Fixes: 7e1a1ac1fbaa ("bonding: Check return of dev_set_promiscuity/allmulti")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions