From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 07 Mar 2016 04:14:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,551,1449561600"; d="scan'208";a="931295389" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.121]) ([10.237.220.121]) by fmsmga002.fm.intel.com with ESMTP; 07 Mar 2016 04:14:52 -0800 To: Bernard Iremonger , dev@dpdk.org References: <1456229580-25009-1-git-send-email-bernard.iremonger@intel.com> <1457350840-29426-1-git-send-email-bernard.iremonger@intel.com> From: Ferruh Yigit Message-ID: <56DD70BB.8060909@intel.com> Date: Mon, 7 Mar 2016 12:14:51 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <1457350840-29426-1-git-send-email-bernard.iremonger@intel.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v2] bonding: fix crash when no slave devices X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Mar 2016 12:14:54 -0000 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