From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id B75345697 for ; Thu, 6 Aug 2015 10:20:00 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP; 06 Aug 2015 01:19:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,622,1432623600"; d="scan'208";a="620342292" Received: from irsmsx154.ger.corp.intel.com ([163.33.192.96]) by orsmga003.jf.intel.com with ESMTP; 06 Aug 2015 01:19:59 -0700 Received: from irsmsx109.ger.corp.intel.com ([169.254.13.130]) by IRSMSX154.ger.corp.intel.com ([169.254.12.253]) with mapi id 14.03.0224.002; Thu, 6 Aug 2015 09:19:57 +0100 From: "Jastrzebski, MichalX K" To: "dev@dpdk.org" Thread-Topic: [PATCH v3 1/1] bonding: fix device initialisation error handling Thread-Index: AQHQz4egLUV7W7pVC0WunV1qk5g9oJ3+oXRg Date: Thu, 6 Aug 2015 08:19:56 +0000 Message-ID: <60ABE07DBB3A454EB7FAD707B4BB1582139750C6@IRSMSX109.ger.corp.intel.com> References: <1438783443-23286-1-git-send-email-bernard.iremonger@intel.com> In-Reply-To: <1438783443-23286-1-git-send-email-bernard.iremonger@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v3 1/1] bonding: fix device initialisation error handling 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: Thu, 06 Aug 2015 08:20:01 -0000 > -----Original Message----- > From: Iremonger, Bernard > Sent: Wednesday, August 05, 2015 4:04 PM > To: dev@dpdk.org > Cc: Jastrzebski, MichalX K; Liu, Yong; Iremonger, Bernard > Subject: [PATCH v3 1/1] bonding: fix device initialisation error handling >=20 > If the name parameter to rte_eth_bond_create() was NULL, > there was a segmentation fault because eth_dev was also NULL. > Add error handling of mac_addrs memory allocation. > Add call to rte_eth_dev_release_port() in error handling. >=20 > Signed-off-by: Bernard Iremonger Acked-by: Michal Jastrzebski