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

Ferruh Yigit ferruh.yigit at intel.com
Mon Mar 7 13:14:51 CET 2016


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>


More information about the dev mailing list