aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2016-12-05 18:42:23 +0000
committerMister Oyster <oysterized@gmail.com>2017-12-14 15:00:51 +0100
commit8a6ba29cb0f822e1b493bfb0281f5e5a63ee3191 (patch)
tree7566fd281a9d6abc7bb34a36628cd64393b7bb12
parent704fadfe120c3813610f0b2063bbd33b34d8c4df (diff)
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) Change-Id: If4a9904d92508a9d97c1faaeef5d31988812ddb8 Signed-off-by: Eric Biggers <ebiggers@google.com>
-rw-r--r--crypto/testmgr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index 1ffe1b2be..b835e3f97 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -52,7 +52,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