X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=test%2Ftest%2Ftest_cryptodev.c;h=f8f15c0631fe6013312b76680119a366d9cee009;hb=405268c73de200733afe7eaa60d003be1f86e855;hp=eed7385dfc9ea43424d2beaa474c0cb04e6d2c74;hpb=fe09afb73b349bdb25b343a09810ba1bfe6e5bcf;p=dpdk.git diff --git a/test/test/test_cryptodev.c b/test/test/test_cryptodev.c index eed7385dfc..f8f15c0631 100644 --- a/test/test/test_cryptodev.c +++ b/test/test/test_cryptodev.c @@ -3580,8 +3580,7 @@ test_snow3g_encryption_offset_oop(const struct snow3g_test_data *tdata) rte_hexdump(stdout, "ciphertext:", ciphertext, plaintext_len); #endif - expected_ciphertext_shifted = rte_malloc(NULL, - ceil_byte_length(plaintext_len + extra_offset), 0); + expected_ciphertext_shifted = rte_malloc(NULL, plaintext_len, 8); TEST_ASSERT_NOT_NULL(expected_ciphertext_shifted, "failed to reserve memory for ciphertext shifted\n");