bdev/crypto: fix unit test ASAN issue

Bug introduced when some fixes for DPDK 19.02 were added.

Fixes #659

Change-Id: I5ef9ce6a5e30591fc7d2aeaa8d398effe42888f6
Signed-off-by: paul luse <paul.e.luse@intel.com>
Reviewed-on: https://review.gerrithub.io/c/444449
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Seth Howell <seth.howell5141@gmail.com>
This commit is contained in:
paul luse 2019-02-13 12:59:46 -05:00 committed by Ben Walker
parent a1c2b2d0a5
commit 467debe382

View File

@ -323,7 +323,8 @@ test_setup(void)
*/
for (i = 0; i < MAX_TEST_BLOCKS; i++) {
rc = posix_memalign((void **)&g_test_crypto_ops[i], 64,
sizeof(struct rte_crypto_op) + sizeof(struct rte_crypto_sym_op));
sizeof(struct rte_crypto_op) + sizeof(struct rte_crypto_sym_op) +
AES_CBC_IV_LENGTH);
if (rc != 0) {
assert(false);
}