Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bonding: process the err returned by dev_set_allmulti properly in bon…
…d_enslave [ Upstream commit 9f5a90c107741b864398f4ac0014711a8c1d8474 ] 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: 7e1a1ac ("bonding: Check return of dev_set_promiscuity/allmulti") Signed-off-by: Xin Long <[email protected]> Acked-by: Andy Gospodarek <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information