From patchwork Wed Aug 23 12:24:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 110823 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp4051602qge; Wed, 23 Aug 2017 05:24:27 -0700 (PDT) X-Received: by 10.223.171.209 with SMTP id s75mr1351305wrc.277.1503491067425; Wed, 23 Aug 2017 05:24:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503491067; cv=none; d=google.com; s=arc-20160816; b=T069/rcRj/uL++hu2vdke3Hdx+hUXOWVYoszu6ce0i4dU9PinR12Vho9kRmWh1f3mk komZaakeFObmIOfNx50nuPdKQ6eUgevl7PaMc14v2vlZuT9yoDfhbpNcUB53PI7Kyxe8 oSOcOYQQwucnotwDdCOtmvEnsW+8S64LS32SsNckr+zGPPbfWTMF15NUgk+MNNfCng69 USpNBRmzRTkng3E9lEi0D+GLy8DN1XaaEpuZv+OpQKQGA2ZJhcWmX0dyj9jM8jY2u54n o2VAnnmGPEsq9chGYiH2zwpWwgWyJjkEpQZL7BZauvBqWkF7URk8om/zMaq81zTIXu2P 8fxA== 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:message-id:date:cc:to:from :arc-authentication-results; bh=nVXcY+7+136yaD8X9v2hykh/isItDg68HTH8roD5pgE=; b=fVRKgxK0sToAVub8oDHrnb20k3SbCcra7EsOFI7w79Ca8KGug2L0vjRjEdTZfVGQGg GvDT+kTEIZW19s68aamEy4D0v712UZMZKu6rwx4U1RL3sVLNMdK/RpoZKHvaAXTEePxg k8iWGg6ksxdMle9rc7RIpLybuDOSbJ/WDhf0yQLFw09jhNVADSvE4gcrLT4qgg2wLpPD QgEKAwbPeSXpUOJ929fCvUAAKji6JwTxID4egI2ivBrwH1CrEoW+32nkFUw/iXrNLwsV pFuv3RP7WMgoGcpik4oEwmbOtZxoiTdS6oEdNQ9UegxJoYp+sO0C6A4O6PJ9vHY2sjRI AJEA== 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: Received: from dpdk.org ([2001:4b98:dc0:41:216:3eff:fe72:dd13]) by mx.google.com with ESMTP id e14si245764wmd.140.2017.08.23.05.24.27; Wed, 23 Aug 2017 05:24:27 -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 276E17D4A; Wed, 23 Aug 2017 14:24:26 +0200 (CEST) Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0050.outbound.protection.outlook.com [104.47.33.50]) by dpdk.org (Postfix) with ESMTP id 761EB7D42 for ; Wed, 23 Aug 2017 14:24:24 +0200 (CEST) Received: from BN3PR03CA0099.namprd03.prod.outlook.com (10.174.66.17) by CO2PR03MB2261.namprd03.prod.outlook.com (10.166.92.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1362.18; Wed, 23 Aug 2017 12:24:23 +0000 Received: from BN1BFFO11OLC003.protection.gbl (2a01:111:f400:7c10::1:110) by BN3PR03CA0099.outlook.office365.com (2603:10b6:400:4::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1362.18 via Frontend Transport; Wed, 23 Aug 2017 12:24:22 +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 BN1BFFO11OLC003.mail.protection.outlook.com (10.58.145.14) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1341.15 via Frontend Transport; Wed, 23 Aug 2017 12:24:22 +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 v7NCOJVV032126; Wed, 23 Aug 2017 05:24:19 -0700 From: Hemant Agrawal To: CC: , , Date: Wed, 23 Aug 2017 17:54:03 +0530 Message-ID: <1503491044-27863-1-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131479646625313914; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39380400002)(39860400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(81166006)(50986999)(8676002)(626005)(47776003)(110136004)(53936002)(77096006)(5660300001)(86362001)(81156014)(6666003)(8656003)(50226002)(104016004)(85426001)(498600001)(8936002)(33646002)(5003940100001)(356003)(68736007)(50466002)(48376002)(2351001)(4326008)(105606002)(97736004)(54906002)(2906002)(189998001)(36756003)(6916009)(305945005)(106466001); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR03MB2261; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11OLC003; 1:xx1SyxBAcHzpdyXCxJa23z/0O7SriLtS3+dFhI/CJlNsbm+UwA273Hnq0v7+hdz9pUXGAH06mLOhvcL9b+gYAVwhsLtNSIGW5x0h/pPdn3lE8Y36lB8nhbVKprg0/K6t MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b5506f23-b420-4c98-531d-08d4ea21e2c0 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603184)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CO2PR03MB2261; X-Microsoft-Exchange-Diagnostics: 1; CO2PR03MB2261; 3:A4/hfhDKFKW3FdHRE+9LcDg7YTyKmR56gcJaDCH7zW4ecoM0AMDO3FY0MnCqfRo/Wj9bGKhMW60x/pAqdR5s+7ffBfEtTVfk4SpXoC+TFpBKfvCtICY0cKlJvvS9CQCwhCof9WW8+uaApeStLTwNF1ZY+4NPoR4nr8XoMvdEGmZ0z7QGOUGB2DuzWSNeECyZVAOkr8G6YKSCYiaIAacTiWkrFcZkUJEumfOz77m40xxt1QBwbTtNCpVFD2qgyESHd4dFjHYBVPRJcaH3JKq+gX5LIeqKWQtjqvLA2k+HOIlPriZPfCTh6mZq9ZQmnRp0WtdnzLCE8mN1Xr9QlXIWqujbdBSve9H24gA6Dji88CY=; 25:fhD0hEdXBJ+tnnTsnw7s573AXNIpscYS6M0vwSiXXbsrrjkDN5mXlIF91Hbwarr+tJy/02GuITxDmkW6yR8prZbRNmmCx23zFtrER6rLu/bWbu0R4sYScAdC9qSll5C/kfngmA+KzHc4vDzGq+eClBm+oDtnFgFvuh2KispfxNIlzKvof6rftm4exhAF1r3oE1ucpfUUtg5TNf5KXCDhUKaAYDDO1UzDtubovTmSCzGkNDWmR2xuyfM+vTifV6xUR1DHlSgpEEK08Ynfs9MLiFzUdUu1EKLpnDgJ8AAgNH31aZLD6yVosevMXTJS128qBXr1CDk4zVxL1erkf1iUAw== X-MS-TrafficTypeDiagnostic: CO2PR03MB2261: X-Microsoft-Exchange-Diagnostics: 1; CO2PR03MB2261; 31:2M3XLd/v1va9cbqeisjd2hySU1qHikJEMt8F/XjrglkNYxM6gxERQiQUVNAHhEuEZTkh9WqlgVIcdRKBAmMx4VV5aK9+jlMZi1zpQZCK/8bINExqvO17VrYKwXftDGJPRT3O3JB+iGswQg50CMMNe9wR9o6LK6xGHBKScRgbtxEufSGQOy7ntZvpImnVBQnqsnI8eWw1HQzbrs73jwrucL4MqKaWadAkjgXOITXoNp8=; 4:0lc6s+jTXLR29eRAZWMkgiWD4pggd5Sapkx8y/CQpMVLIDo7nk2fZhOh9EOm5YvSjlpUB9X0z4pFX2KZwGyC8jCcjMXST/i1DtFJJQ9ae7CftluAiKnC7DnK/fAG7KOgr8Q0hkMjFhyvOrwgxv7MBzHbeMt7i45G4NUeIA4uyO8VcBZr7Fs0CGPrh/4G2eZC9Woby1x+zsz5/a+6D+HziE49QnNQjbTy1cjdLpR6kR+VB0wHKglyVZvE3nvi0Pg1NBCrMFBPFX+XG9Dq54Os7kokYTX5S59+sdQZ/Ro53eY= X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(13018025)(8121501046)(5005006)(13016025)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(3002001)(6055026)(6096035)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123556025)(20161123563025)(20161123559100)(20161123561025)(20161123565025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CO2PR03MB2261; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CO2PR03MB2261; X-Forefront-PRVS: 040866B734 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR03MB2261; 23:dzXt/OF9J7EqiBGSJ4kirbHdddUhMACxUkF2+kw6c?= AlD7TSTbylQRBFHsmdrQDE95qUT6rFELRmWuqY2Rb4ILXVoBnrqbNElAV5/9owAPgHYjCRyB2FnBJkIfwRRdnZU6k0esAw67o/A6aYDrjt2LLRphzIz9XT4HmhQLwb3jF6jDnuh2OSW7pj5gARKNjs3LnXKcFQwV9Qj4o7nymF/NG48GNXoxcRhGr4Z4zlDi7b3Re2ASco9AOacNgWqK7tZcurNW/wIhd0jgVuAOp6GWRRJoag2uuW7D3BLPsOKrMZssXwCUH2MRxC6z6hfRh26OcXNtx4LaApLBCodlofct1i1jzfufl5fnY9xM2XxrC9CBwPmlVoXYfo99TtT9ruZu1ikZpXAmmmEJManZIOojP3ozNKB481P9TASb/DjAOe/7aR4p7Y33h3r1VEiXBOIfAvb1+q0xAum9k6IqKzV6m1Th2dCCeNxyPFywHAghswF4wZsEZhav2PLLQmiWO7ACXKBk5ltv8klvZ/+Yn3czacFv9aP1wiKzuDWeh8DxeXbAOMlDFrcUF5UDxx+Pp9/9SuaGW+Aa6O1TM8ZU01uEgO7bHZT23fyaC1uG4/iHhDKo6VT4bW9SwGtWevhN4zOZBahhjywA6JfCy/BCeyniZzQkhnvBi3WJXzFZOeIL7mEH/32NX87ML2W9JHGG3Ra1QAJPGs59oLGU3i7Z5DdwVIAYl93Wp5A3jSO3MwPjNecEYASl0HGYp6ANZl6MPkGUndATI2048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SA/b+7uD/J4iGiAOFAMDuPNaypE3oXnkuaAqu/5xMHedWWDyjtR6Z6ku2Cbh+jLAjZN+w7YNUYtkKFjmHiVIrxNhnCl/bmoUonZF0tLbYDzcJCPlk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Aug 2017 12:24:22.3285 (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: CO2PR03MB2261 Subject: [dpdk-dev] [PATCH] examples/l2fwd-crypto: 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" errno should be initialized to 0 before calling strtol Fixes: 1df9c0109f4c ("examples/l2fwd-crypto: parse key parameters") Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal --- examples/l2fwd-crypto/main.c | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 Acked-by: Pablo de Lara Reviewed-by: Kirill Rybalchenko diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c index f020be3..17673a3 100644 --- a/examples/l2fwd-crypto/main.c +++ b/examples/l2fwd-crypto/main.c @@ -1088,6 +1088,7 @@ parse_key(uint8_t *data, char *input_arg) unsigned byte_count; char *token; + errno = 0; for (byte_count = 0, token = strtok(input_arg, ":"); (byte_count < MAX_KEY_SIZE) && (token != NULL); token = strtok(NULL, ":")) {