From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v2] bonding: fix crash when no slave devices Date: Mon, 7 Mar 2016 12:14:51 +0000 Message-ID: <56DD70BB.8060909@intel.com> References: <1456229580-25009-1-git-send-email-bernard.iremonger@intel.com> <1457350840-29426-1-git-send-email-bernard.iremonger@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit To: Bernard Iremonger , dev@dpdk.org Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 243B92B96 for ; Mon, 7 Mar 2016 13:14:53 +0100 (CET) In-Reply-To: <1457350840-29426-1-git-send-email-bernard.iremonger@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 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