From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 0DC2937B1 for ; Wed, 19 Apr 2017 17:42:59 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP; 19 Apr 2017 08:42:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,221,1488873600"; d="scan'208";a="847673483" Received: from irsmsx105.ger.corp.intel.com ([163.33.3.28]) by FMSMGA003.fm.intel.com with ESMTP; 19 Apr 2017 08:42:58 -0700 Received: from irsmsx101.ger.corp.intel.com ([169.254.1.187]) by irsmsx105.ger.corp.intel.com ([169.254.7.163]) with mapi id 14.03.0319.002; Wed, 19 Apr 2017 16:40:32 +0100 From: "Zhang, Roy Fan" To: "De Lara Guarch, Pablo" CC: "dev@dpdk.org" Thread-Topic: [PATCH] crypto/scheduler: fix uninitialized capability structure Thread-Index: AQHSuR39kFdHYle2ckWz+XA+mSjvtKHM1Aqg Date: Wed, 19 Apr 2017 15:40:31 +0000 Message-ID: <9F7182E3F746AB4EA17801C148F3C60409E9AADC@IRSMSX101.ger.corp.intel.com> References: <1492614135-27777-1-git-send-email-pablo.de.lara.guarch@intel.com> In-Reply-To: <1492614135-27777-1-git-send-email-pablo.de.lara.guarch@intel.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYzdhNmYyNjMtZWRhNy00YjUwLWFkZDQtNzYxM2Y1ZTMwNWJiIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6ImZWOTFMVGw0VFJQSmhjWk91RkRLMHIwTGdzTjlvUnM1bERhTzhodEtMR0k9In0= dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [163.33.239.181] 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 15:43:00 -0000 > -----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 structure >=20 > 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 poten= tial > segmentation fault. >=20 > Therefore, the structure should be initialized with no capabilities at de= vice > creation. >=20 > Fixes: 31439ee72b2c ("crypto/scheduler: add API implementations") >=20 > Signed-off-by: Pablo de Lara Acked-by: Fan Zhang