Commit 467debe3 authored by paul luse's avatar paul luse Committed by Ben Walker
Browse files

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: default avatarpaul luse <paul.e.luse@intel.com>
Reviewed-on: https://review.gerrithub.io/c/444449


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarSeth Howell <seth.howell5141@gmail.com>
parent a1c2b2d0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);
		}