Message ID | 1504592221-32022-1-git-send-email-hemant.agrawal@nxp.com |
---|---|
State | Accepted |
Commit | 5c49049dd9d265f9a2086020ec7c34d3bce3c037 |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.94.166 with SMTP id g35csp2422420qge; Mon, 4 Sep 2017 23:17:32 -0700 (PDT) X-Google-Smtp-Source: ADKCNb49neYr9uXE4A1kshWGZSwLvWJI8B/wryI6nt7cx0qe2vXCJSxgKsbLMyMq+iT9r3RONwO0 X-Received: by 10.28.38.69 with SMTP id m66mr1504060wmm.34.1504592252608; Mon, 04 Sep 2017 23:17:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504592252; cv=none; d=google.com; s=arc-20160816; b=ln9nU8mF83bNg/NgxeyxJMf7vUKUltVgF3M54CiCISChLRhVmtWUhLcm61Uey2+Lfm WCn3qXtyDQuTwMgeTb0xXyACfT4VjT9RD9PHKCXe4cy/I46FpnLYpL29sJYOW7dDeymr KCxpzKls1AXcsb0XZQP4Heo3OjsJ7V5ynuG8WCFApaokZkD60rqiNUA2BjHZTXHcTRBs esQKRwj5M/W6GafiYHz29mfFIcFFV3oEa3nd5RkkP5XLGBbqb4cp6ArLqPmt/anegz36 /TZdyjYrCf/80bgkazOgjpbPXxil0WTlAtiyZibZ3eeHDrSoxZk/+bVX6Pv5tIxdoJYQ erKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:arc-authentication-results; bh=dGlbSFzmw0w3zb4zFrouat6MVDwC8EPyApPR++jDd3s=; b=dV2XYtGqimqdP6SPXIdqYnSS4NlILTJS4w32AcEVhkiwoWZHJ7OwCApXroyqa7S4Qn TYPUvbwGLlz+p5vGYoRsOtZ2N3c9+JEW4+wAH2FllzpNxJJE9sVTBpibuwoLzrDCmcX0 4jsRbnVBFMAkTlbNEoyCu/j5O+rbYPoD9hELFI88dogTTkrQlolnwRdtMrqeKvZ4nncB Y0LZS/tDCBDkOnq57mnNdNCETEvBso3s6uonXFqJSQjDR82++7vAaucRdDmr/8tK3TZN 1Uy9TqaoHI7NmrlzUl6Wn0BQ+LVh/mB1/h3GSbdPRmHuRkAjYttsoyirvL89VeAJyttU RhUg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 2001:4b98:dc0:41:216:3eff:fe72:dd13 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: <dev-bounces@dpdk.org> Received: from dpdk.org ([2001:4b98:dc0:41:216:3eff:fe72:dd13]) by mx.google.com with ESMTP id v107si1625174wrb.513.2017.09.04.23.17.32; Mon, 04 Sep 2017 23:17:32 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 2001:4b98:dc0:41:216:3eff:fe72:dd13 as permitted sender) client-ip=2001:4b98:dc0:41:216:3eff:fe72:dd13; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 2001:4b98:dc0:41:216:3eff:fe72:dd13 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id A46B6330D; Tue, 5 Sep 2017 08:17:31 +0200 (CEST) Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0079.outbound.protection.outlook.com [104.47.40.79]) by dpdk.org (Postfix) with ESMTP id 5451D3254 for <dev@dpdk.org>; Tue, 5 Sep 2017 08:17:29 +0200 (CEST) Received: from BN6PR03CA0095.namprd03.prod.outlook.com (10.164.122.161) by CY4PR03MB3320.namprd03.prod.outlook.com (10.171.247.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.13.10; Tue, 5 Sep 2017 06:17:27 +0000 Received: from BN1AFFO11FD030.protection.gbl (2a01:111:f400:7c10::138) by BN6PR03CA0095.outlook.office365.com (2603:10b6:405:6f::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1385.9 via Frontend Transport; Tue, 5 Sep 2017 06:17:27 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; NXP1.onmicrosoft.com; dkim=none (message not signed) header.d=none;NXP1.onmicrosoft.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11FD030.mail.protection.outlook.com (10.58.52.168) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1385.11 via Frontend Transport; Tue, 5 Sep 2017 06:17:25 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v856HLbI020642; Mon, 4 Sep 2017 23:17:22 -0700 From: Hemant Agrawal <hemant.agrawal@nxp.com> To: <dev@dpdk.org> CC: <declan.doherty@intel.com>, <pablo.de.lara.guarch@intel.com>, <akhil.goyal@nxp.com> Date: Tue, 5 Sep 2017 11:47:01 +0530 Message-ID: <1504592221-32022-1-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503491044-27863-2-git-send-email-hemant.agrawal@nxp.com> References: <1503491044-27863-2-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131490658466117482; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(979002)(6009001)(336005)(39380400002)(39860400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(33646002)(54906002)(189998001)(53936002)(47776003)(4326008)(110136004)(50986999)(106466001)(105606002)(76176999)(50466002)(626005)(48376002)(2351001)(104016004)(8676002)(36756003)(77096006)(5003940100001)(6666003)(2950100002)(6916009)(50226002)(2906002)(81156014)(305945005)(8936002)(86362001)(81166006)(356003)(68736007)(498600001)(5660300001)(85426001)(8656003)(97736004)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR03MB3320; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD030; 1:LbM3h/ldTGL4v8kxlPmzv31fz3w8VluNByK1cgpRCGo31ha7C6qLmbd+K2JIZJv04pCJnoQm7WAllr0Tbf9ZqhAZPdnX/7zGVDcdyd7mQXh6Glx3ByuVR7SA0IcU2yDg MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f282d32a-2687-41df-b76a-08d4f425c79e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603199)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CY4PR03MB3320; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB3320; 3:Ytdo0eb18YtoIbDXS7vc41r7i3Eo1TXKk5nyQZ5TIJKjiF8lPGNgDN83kQoJmeRdJkd1yN1/gFs+MjzXy/iI/QUiGzl1LN3YoI/wPlm9/nFtpqo9zrphegG37uDVBq7dKerNqlscNU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HuxnhbT2yEqbwBRpsRjbXM+XBIXvTNgXJmqGJbqDIZCYhzqv0VqX+hNrpqJMNDBdg8OUqubxb8hwxoQejK88R69IrWlHMr0jsDnhKFaF6G3R7XGJN3fgJjLLuMSiynl+QR1lMrESb2jtYsHtxJZ3hvkWLDAevnJghE2w== X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Microsoft-Antispam-PRVS: <CY4PR03MB3320FF01611D81501375C7FE89960@CY4PR03MB3320.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(6055026)(6096035)(20161123565025)(20161123559100)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123556025)(20161123563025)(20161123561025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR03MB3320; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR03MB3320; X-Forefront-PRVS: 0421BF7135 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR03MB3320; 23:aVxPUuvsGF/rDQDENz7she81hZW6uybwwXI+eYW/k?= BOb+jPFCq71m7Mo4qA8FBdSF20xXGvVaigjyAiA1nRYb6Gogh2D88S0am82M2HlLqf4MwXHyYs20lk428aSSBUXQ7k8yZP1diPZLLAGYYPBSaJrSQxwbaiZlVvFXsDT2oJOTWu60o+8Z0nkLz8iyZzeYo0cL+mU5Tg/Bif5HAITLfOCPiQQBRDmljWicI9bwFRmUQmH12LUYjO5f6cwJbcR9LKqlvLKPjU7FHx4FYGUlrzpNf4RGbCZ+QYwy2S+SSWGSbExVgagFaWl920vPwkivLfrh5tStQ+76MW5OsYfbz1Mi2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iNmcXMqZ5/d9o+peEuLj8uXshsSkPNDycHTgF2jtlGCF/tnblx6UGs/64R/BoMnOMk7UexoebPdIyNrg9y4gznDeSWAQPcKmwtAin9MoURcZsWykM+SguAk0dVDTOd0vpcsBImuOVCgy/fQTr2C+5RzGZ1nIEkzoQdv3I5pWB9ZnKzB+QSw7CZT0MXos1T/ED1bgnYA==; 5:nxaW7wUX573xCpzpf83q/UZqS+tkAtWfwZvvZwxxYlbrZ0THOFO/lZ4jHjU93GhG738plvJhyEOk+AfWyLJb+xmoQwaEOF4P2qS6pSi1QwP3gVmVlhPOzdjF6BilDJHfHemDu5h+sPuQ+e2tp4axOw==; 24:M4XKpSvyx6TSidDsXhHK4GliSDcXKSSHXk8oQ4TllWewM62Ve0j0RlB1RIdG9sweteQfH4tfCAf6tGe4qGVf4BNIR3n/EUs3VUfgZnT16N0=; 7:mznyfhckG5Kh0YWhi1iCGCMMh8mDjUS1LOGF9uRN8uUQv5qkCjdptaLZ0lUxEAgJzTojgzbwyDly2lywdFxYzlRKDCnPEJXdw3ghuGQh3J0dl+CKe5XCEcDwAUT4XAOfjenCVV5NH2rTu87pn8I9xLNKbXF0Nkhjdr5/BURzo9/lddziBZzbifQvWqT0KfF20p/62b/AzVZRpYwg2LGqJWMESqai/qwFuSYXgt/1Pdg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Sep 2017 06:17:25.4105 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR03MB3320 Subject: [dpdk-dev] [PATCH v2] 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 <dev.dpdk.org> List-Unsubscribe: <http://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <http://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
[v2] app/crypto-perf: fix uninitialized errno value
|
expand
|
> -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Hemant Agrawal > Sent: Tuesday, September 5, 2017 7:17 AM > To: dev@dpdk.org > Cc: Doherty, Declan <declan.doherty@intel.com>; De Lara Guarch, Pablo > <pablo.de.lara.guarch@intel.com>; akhil.goyal@nxp.com > Subject: [dpdk-dev] [PATCH v2] app/crypto-perf: fix uninitialized errno value > > errno should be initialized to 0 before calling strtol > > Fixes: f6cefe253cc8 ("app/crypto-perf: add range/list of sizes") > Cc: stable@dpdk.org > > Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> > Reviewed-by: Kirill Rybalchenko <kirill.rybalchenko@intel.com> Applied to dpdk-next-crypto. Thanks, Pablo
diff --git a/app/test-crypto-perf/cperf_options_parsing.c b/app/test-crypto-perf/cperf_options_parsing.c index 085aa8f..663f53f 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 == NULL) return -1; + errno = 0; token = strtok(copy_arg, ":"); /* Parse minimum value */ @@ -203,6 +204,7 @@ parse_list(const char *arg, uint32_t *list, uint32_t *min, uint32_t *max) if (copy_arg == NULL) return -1; + errno = 0; token = strtok(copy_arg, ","); /* Parse first value */