From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 22B4B239 for ; Tue, 21 Nov 2017 14:26:22 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id C9BBC20B60; Tue, 21 Nov 2017 08:26:21 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Tue, 21 Nov 2017 08:26:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=KIQA2FvXhlJfuDDzY b8wIX/wbnVL1qs/jtf7OGmtkEw=; b=F/GxySpa9dUvMHJE5q6kGtmmADqq86Y99 ekl9qWv8TlfvjTmlFLcMz01iWEv1LJTSpQe1Q+wn4bh0B1KjSA5cH6lfdB/RqIci KQturgr9z72FYmtI4jHdiQ/DxuMoGzdZKkv/cvb2mn/mGkEdq+DpxvrNcMQdsSbA SPcdvEU8sLFfHuoEkW6Pdb76JJ12xchZa/enMeEVze6/KZsp/Ux/69cYX98iYttg c/34A5N06ZFfB7sK5IeccxjwYiqiHku3eoz93gIC3WGNZ7LVAsjL6VtT33yZM9ot 4LYCyuoI4jc1OHCYoda7oGsbwjak1JJ3B4HeotolZ12yYNKfFYl/w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=KIQA2FvXhlJfuDDzYb8wIX/wbnVL1qs/jtf7OGmtkEw=; b=bTvdXU5n qYfvdG+td/Xxgd+x8RwpgIA2qGz9trFhOeBmdCRPZ7PF1MlaNPhFq3Wrb/zBAa6l Hw4YRiW8REX8gWOuyRahNQh4C6rwsJzeVYN5P5ETDnrFmDQvSIFhc7U4UIZ9tBod HRcUftgfqrj4kEVElMLdgh7+Xi95U096DALRCmhy3qpnjnwcMjM893RQXJPMzHlv /BSDcQFeKds6K0orIqpyXz4wCm9OYtruRSZIdRVjo0vcCyb3ZSEKlu/k2zAwXpqB NW2fE2AEgG0Mt8GoN6mJCw+6MP4/XOduSSb6DdGoLtE3dSNaofLA8bISbSNzyu4v qzBJvJV4ZmT0rQ== X-ME-Sender: Received: from localhost.localdomain (unknown [180.158.62.0]) by mail.messagingengine.com (Postfix) with ESMTPA id 61E97247A9; Tue, 21 Nov 2017 08:26:18 -0500 (EST) From: Yuanhan Liu To: Hemant Agrawal Cc: Kirill Rybalchenko , dpdk stable Date: Tue, 21 Nov 2017 21:17:32 +0800 Message-Id: <1511270333-31002-110-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511270333-31002-1-git-send-email-yliu@fridaylinux.org> References: <1511270333-31002-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'app/crypto-perf: fix uninitialized errno value' has been queued to stable release 17.08.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Nov 2017 13:26:22 -0000 Hi, FYI, your patch has been queued to stable release 17.08.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/24/17. So please shout if anyone has objections. Thanks. --yliu --- >>From ad07339df5da3abd898b0e623d00e8343f7fda7a Mon Sep 17 00:00:00 2001 From: Hemant Agrawal Date: Tue, 5 Sep 2017 11:47:01 +0530 Subject: [PATCH] app/crypto-perf: fix uninitialized errno value [ upstream commit 5c49049dd9d265f9a2086020ec7c34d3bce3c037 ] errno should be initialized to 0 before calling strtol Fixes: f6cefe253cc8 ("app/crypto-perf: add range/list of sizes") Signed-off-by: Hemant Agrawal Reviewed-by: Kirill Rybalchenko --- app/test-crypto-perf/cperf_options_parsing.c | 2 ++ 1 file changed, 2 insertions(+) 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 */ -- 2.7.4