summaryrefslogtreecommitdiff
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2016-12-05 18:42:23 (GMT)
committer Eric Biggers <ebiggers@google.com>2018-12-13 17:34:57 (GMT)
commita4c5728a9b99c3dfa9e13f2a41edd1ddc9757f0b (patch)
tree8b58d679ba5f44d7fd9cc45fb6d97973d1621716
parent23fb560ecef337fbc89f8a86cf8ae1816ca81eff (diff)
downloadcommon-a4c5728a9b99c3dfa9e13f2a41edd1ddc9757f0b.zip
common-a4c5728a9b99c3dfa9e13f2a41edd1ddc9757f0b.tar.gz
common-a4c5728a9b99c3dfa9e13f2a41edd1ddc9757f0b.tar.bz2
UPSTREAM: crypto: testmgr - avoid overlap in chunked tests
The IDXn offsets are chosen such that tap values (which may go up to 255) end up overlapping in the xbuf allocation. In particular, IDX1 and IDX3 are too close together, so update IDX3 to avoid this issue. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> (cherry picked from commit 7e4c7f17cde280079db731636175b1732be7188c) Bug: 112008522 Test: As series, see Ic61c13b53facfd2173065be715a7ee5f3af8760b Change-Id: I1f18451e44358fafad6fba4df873a672586747c7 Signed-off-by: Eric Biggers <ebiggers@google.com>
Diffstat
-rw-r--r--crypto/testmgr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index e7c25ac..e60837c 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -62,7 +62,7 @@ int alg_test(const char *driver, const char *alg, u32 type, u32 mask)
*/
#define IDX1 32
#define IDX2 32400
-#define IDX3 1
+#define IDX3 511
#define IDX4 8193
#define IDX5 22222
#define IDX6 17101