[dpdk-dev] [PATCH v2] bonding: fix crash when no slave devices

Bruce Richardson bruce.richardson at intel.com
Fri Mar 11 17:40:17 CET 2016


On Mon, Mar 07, 2016 at 12:14:51PM +0000, Ferruh Yigit wrote:
> On 3/7/2016 11:40 AM, Bernard Iremonger wrote:
> > If a bonded device is created when there are no slave devices
> > there is loop in bond_ethdev_promiscous_enable() which results
> > in a segmentation fault.
> > 
> > The solution is to initialise the current_primary_port to an
> > invalid port value when the bonded port is created.
> > 
> > Fixes: 2efb58cbab6e ("bond: new link bonding library")
> > Signed-off-by: Bernard Iremonger <bernard.iremonger at intel.com>
> 
> Acked-by: Ferruh Yigit <ferruh.yigit at intel.com>

Applied to dpdk-next-net/rel_16_04

/Bruce


More information about the dev mailing list