[dpdk-stable] patch 'app/crypto-perf: fix uninitialized errno	value' has been queued to stable release 17.08.1
    Yuanhan Liu 
    yliu at fridaylinux.org
       
    Tue Nov 21 14:17:32 CET 2017
    
    
  
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 <hemant.agrawal at nxp.com>
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 <hemant.agrawal at nxp.com>
Reviewed-by: Kirill Rybalchenko <kirill.rybalchenko at intel.com>
---
 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
    
    
More information about the stable
mailing list