net/bonding: clear started state if start fails
authorChas Williams <chas3@att.com>
Fri, 23 Mar 2018 17:05:32 +0000 (13:05 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 13 Apr 2018 22:40:21 +0000 (00:40 +0200)
commit85d3c09a0f40740ca64556522fed1b3bb5aa6167
tree8be93d477e7ce4433beed7b8f381fc90d4864c9b
parent3639903f488976e61752103bed546d5b87147ad0
net/bonding: clear started state if start fails

There are several error paths where the bonding device may not start.
Clear dev_started before we return if we take one of these paths.

Fixes: 2efb58cbab6e ("bond: new link bonding library")
Cc: stable@dpdk.org
Signed-off-by: Chas Williams <chas3@att.com>
Acked-by: Radu Nicolau <radu.nicolau@intel.com>
drivers/net/bonding/rte_eth_bond_pmd.c