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 52DC77D00 for ; Mon, 4 Sep 2017 16:56:19 +0200 (CEST) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Sep 2017 07:56:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,475,1498546800"; d="scan'208";a="147320664" Received: from irsmsx108.ger.corp.intel.com ([163.33.3.3]) by fmsmga005.fm.intel.com with ESMTP; 04 Sep 2017 07:56:17 -0700 Received: from irsmsx155.ger.corp.intel.com (163.33.192.3) by IRSMSX108.ger.corp.intel.com (163.33.3.3) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 4 Sep 2017 15:56:17 +0100 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.167]) by irsmsx155.ger.corp.intel.com ([169.254.14.70]) with mapi id 14.03.0319.002; Mon, 4 Sep 2017 15:56:16 +0100 From: "De Lara Guarch, Pablo" To: Hemant Agrawal , "dev@dpdk.org" CC: "Doherty, Declan" , "akhil.goyal@nxp.com" Thread-Topic: [PATCH] app/crypto-perf: fix uninitialized errno value Thread-Index: AQHTHArKxSvt7WL7PkKijypXS/3/46Kk4wKQ Date: Mon, 4 Sep 2017 14:56:16 +0000 Message-ID: References: <1503491044-27863-1-git-send-email-hemant.agrawal@nxp.com> <1503491044-27863-2-git-send-email-hemant.agrawal@nxp.com> In-Reply-To: <1503491044-27863-2-git-send-email-hemant.agrawal@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 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] app/crypto-perf: fix uninitialized errno value 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: Mon, 04 Sep 2017 14:56:20 -0000 > -----Original Message----- > From: Hemant Agrawal [mailto:hemant.agrawal@nxp.com] > Sent: Wednesday, August 23, 2017 1:24 PM > To: dev@dpdk.org > Cc: Doherty, Declan ; De Lara Guarch, Pablo > ; akhil.goyal@nxp.com > Subject: [PATCH] app/crypto-perf: fix uninitialized errno value >=20 > errno should be initialized to 0 before calling strtol >=20 > Fixes: f6cefe253cc8 ("app/crypto-perf: add range/list of sizes") > Cc: stable@dpdk.org >=20 > Signed-off-by: Hemant Agrawal > --- > app/test-crypto-perf/cperf_options_parsing.c | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/app/test-crypto-perf/cperf_options_parsing.c b/app/test-cryp= to- > perf/cperf_options_parsing.c > index 085aa8f..77c405c 100644 > --- a/app/test-crypto-perf/cperf_options_parsing.c > +++ b/app/test-crypto-perf/cperf_options_parsing.c > @@ -137,6 +137,7 @@ parse_range(const char *arg, uint32_t *min, > uint32_t *max, uint32_t *inc) > if (copy_arg =3D=3D NULL) > return -1; >=20 > + errno =3D 0; > token =3D strtok(copy_arg, ":"); >=20 > /* Parse minimum value */ > -- > 2.7.4 Could you extend this fix to the parse_list function? Thanks! Pablo