From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 17F83282 for ; Fri, 10 Feb 2017 10:47:29 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Feb 2017 01:47:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,140,1484035200"; d="scan'208";a="932310686" Received: from irsmsx153.ger.corp.intel.com ([163.33.192.75]) by orsmga003.jf.intel.com with ESMTP; 10 Feb 2017 01:47:28 -0800 Received: from irsmsx112.ger.corp.intel.com (10.108.20.5) by IRSMSX153.ger.corp.intel.com (163.33.192.75) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 10 Feb 2017 09:47:26 +0000 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.173]) by irsmsx112.ger.corp.intel.com ([169.254.1.175]) with mapi id 14.03.0248.002; Fri, 10 Feb 2017 09:47:26 +0000 From: "De Lara Guarch, Pablo" To: "Gajewski, AleksanderX" , "Doherty, Declan" CC: "dev@dpdk.org" Thread-Topic: [PATCH v2] app/test-crypto-perf: fix uninitialized scalar variable Thread-Index: AQHSg3+tZWgHvsRD4UO8jT4ECh24H6Fh/eFA Date: Fri, 10 Feb 2017 09:47:24 +0000 Message-ID: References: <1486459306-11496-1-git-send-email-aleksanderx.gajewski@intel.com> <1486718552-3741-1-git-send-email-aleksanderx.gajewski@intel.com> In-Reply-To: <1486718552-3741-1-git-send-email-aleksanderx.gajewski@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiY2MwMjllY2EtYjRhNS00MmE5LWE3ZWEtOTczMzI0ZjlkYTc4IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6InZMTzFNQ0lFWTdiWGkyY3owSzZWaHF6d1pDWnFuMUtZeTVhSGRCQ1Vnc2s9In0= 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 v2] app/test-crypto-perf: fix uninitialized scalar variable 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: Fri, 10 Feb 2017 09:47:30 -0000 > -----Original Message----- > From: Gajewski, AleksanderX > Sent: Friday, February 10, 2017 9:23 AM > To: Doherty, Declan > Cc: dev@dpdk.org; De Lara Guarch, Pablo; Gajewski, AleksanderX > Subject: [PATCH v2] app/test-crypto-perf: fix uninitialized scalar variab= le >=20 > Fix problem with uninitialized nb_cryptodevs variable by > initialize it with 0 value. Program could jump to err label > without running cperf_initialize_cryptodev() function. Also assign 0 > value to nb_cryptodevs after cperf_initialize_cryptodev() when value is > negative. >=20 > Coverity issue: 141073 > Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test > application") >=20 > Signed-off-by: Aleksander Gajewski Acked-by: Pablo de Lara