From: Bruce Richardson Subject: Re: [PATCH v2] bonding: fix crash when no slave devices Date: Fri, 11 Mar 2016 16:40:17 +0000 Message-ID: <20160311164016.GE19860@bricha3-MOBL3> References: <1456229580-25009-1-git-send-email-bernard.iremonger@intel.com> <1457350840-29426-1-git-send-email-bernard.iremonger@intel.com> <56DD70BB.8060909@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org To: Ferruh Yigit Return-path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id B30A42BEA for ; Fri, 11 Mar 2016 17:40:20 +0100 (CET) Content-Disposition: inline In-Reply-To: <56DD70BB.8060909@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 > > Acked-by: Ferruh Yigit Applied to dpdk-next-net/rel_16_04 /Bruce