From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 014AE5587 for ; Wed, 19 Apr 2017 18:34:07 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP; 19 Apr 2017 09:34:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,222,1488873600"; d="scan'208";a="1121410850" Received: from irsmsx103.ger.corp.intel.com ([163.33.3.157]) by orsmga001.jf.intel.com with ESMTP; 19 Apr 2017 09:34:06 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.239]) by IRSMSX103.ger.corp.intel.com ([169.254.3.241]) with mapi id 14.03.0319.002; Wed, 19 Apr 2017 17:34:05 +0100 From: "De Lara Guarch, Pablo" To: "Zhang, Roy Fan" CC: "dev@dpdk.org" Thread-Topic: [PATCH] crypto/scheduler: fix uninitialized capability structure Thread-Index: AQHSuR39U8EIR1pwVkCt5Oi7bn/wKKHMw46AgAAToQA= Date: Wed, 19 Apr 2017 16:34:04 +0000 Message-ID: References: <1492614135-27777-1-git-send-email-pablo.de.lara.guarch@intel.com> <9F7182E3F746AB4EA17801C148F3C60409E9AADC@IRSMSX101.ger.corp.intel.com> In-Reply-To: <9F7182E3F746AB4EA17801C148F3C60409E9AADC@IRSMSX101.ger.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYzdhNmYyNjMtZWRhNy00YjUwLWFkZDQtNzYxM2Y1ZTMwNWJiIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6ImZWOTFMVGw0VFJQSmhjWk91RkRLMHIwTGdzTjlvUnM1bERhTzhodEtMR0k9In0= x-ctpclassification: CTP_IC 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] crypto/scheduler: fix uninitialized capability structure X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2017 16:34:09 -0000 > -----Original Message----- > From: Zhang, Roy Fan > Sent: Wednesday, April 19, 2017 4:41 PM > To: De Lara Guarch, Pablo > Cc: dev@dpdk.org > Subject: RE: [PATCH] crypto/scheduler: fix uninitialized capability struc= ture >=20 > > -----Original Message----- > > From: De Lara Guarch, Pablo > > Sent: Wednesday, April 19, 2017 4:02 PM > > To: Zhang, Roy Fan > > Cc: dev@dpdk.org; De Lara Guarch, Pablo > > > Subject: [PATCH] crypto/scheduler: fix uninitialized capability structu= re > > > > Capability information is updated as slaves are attached, but if this > > information is requested via rte_cryptodev_info_get() when no slaves > have > > been attached, the structure would not be initialized, leading to a > potential > > segmentation fault. > > > > Therefore, the structure should be initialized with no capabilities at = device > > creation. > > > > Fixes: 31439ee72b2c ("crypto/scheduler: add API implementations") > > > > Signed-off-by: Pablo de Lara >=20 > Acked-by: Fan Zhang Applied to dpdk-next-crypto. Pablo