p***@xen.org
2018-10-22 03:12:13 UTC
commit b7dae43a2ad8100371af9dc1555de59171cdc57f
Author: Wei Liu <***@citrix.com>
AuthorDate: Mon Aug 20 09:38:18 2018 +0100
Commit: Ian Jackson <***@eu.citrix.com>
CommitDate: Mon Oct 8 15:32:05 2018 +0100
tools/tests: fix an xs-test.c issue
The ret variable can be used uninitialised when iters is 0. Initialise
ret at the beginning to fix this issue.
Reported-by: Steven Haigh <***@crc.id.au>
Signed-off-by: Wei Liu <***@citrix.com>
Acked-by: Ian Jackson <***@eu.citrix.com>
(cherry picked from commit 3a2b8525b883baa87fe89b3da58f5c09fa599b99)
(cherry picked from commit 33664f9a05401fac8f2c0be0bb7ee8a1851e4dcf)
(cherry picked from commit 788948bebcecca69bfac47e5514f2dc351dabad9)
---
tools/tests/xenstore/xs-test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/tests/xenstore/xs-test.c b/tools/tests/xenstore/xs-test.c
index eb5fe55722..6f902dd601 100644
--- a/tools/tests/xenstore/xs-test.c
+++ b/tools/tests/xenstore/xs-test.c
@@ -65,7 +65,7 @@ static int call_test(struct test *tst, int iters, bool no_clock)
char *stage = "?";
struct timespec tp1, tp2;
uint64_t nsec, nsec_min, nsec_max, nsec_sum;
- int i, ret;
+ int i, ret = 0;
nsec_min = -1;
nsec_max = 0;
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.9
Author: Wei Liu <***@citrix.com>
AuthorDate: Mon Aug 20 09:38:18 2018 +0100
Commit: Ian Jackson <***@eu.citrix.com>
CommitDate: Mon Oct 8 15:32:05 2018 +0100
tools/tests: fix an xs-test.c issue
The ret variable can be used uninitialised when iters is 0. Initialise
ret at the beginning to fix this issue.
Reported-by: Steven Haigh <***@crc.id.au>
Signed-off-by: Wei Liu <***@citrix.com>
Acked-by: Ian Jackson <***@eu.citrix.com>
(cherry picked from commit 3a2b8525b883baa87fe89b3da58f5c09fa599b99)
(cherry picked from commit 33664f9a05401fac8f2c0be0bb7ee8a1851e4dcf)
(cherry picked from commit 788948bebcecca69bfac47e5514f2dc351dabad9)
---
tools/tests/xenstore/xs-test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/tests/xenstore/xs-test.c b/tools/tests/xenstore/xs-test.c
index eb5fe55722..6f902dd601 100644
--- a/tools/tests/xenstore/xs-test.c
+++ b/tools/tests/xenstore/xs-test.c
@@ -65,7 +65,7 @@ static int call_test(struct test *tst, int iters, bool no_clock)
char *stage = "?";
struct timespec tp1, tp2;
uint64_t nsec, nsec_min, nsec_max, nsec_sum;
- int i, ret;
+ int i, ret = 0;
nsec_min = -1;
nsec_max = 0;
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.9