Skip to contentSkip to conversation

crypto/aesni_mb: fix build error with gcc 4.8.5

PATCH Applied Bruce Richardson 2 participants 2 messages Jun 5, 2019 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto/aesni_mb: fix build error with gcc 4.8.5

On CentOS/RHEL 7, we get build errors reported due to a variable being possibly unitialized. Setting a default init value fixes this issue.

Fixes c68d7aa354f6 ("crypto/aesni_mb: use architecture independent macros")
---
 drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c +1 -1
index 8bcfe79..edb6608 100644
@@ -104,7 +104,7 @@
 		struct aesni_mb_session *sess,
 		const struct rte_crypto_sym_xform *xform)
 {
-	hash_one_block_t hash_oneblock_fn;
+	hash_one_block_t hash_oneblock_fn = NULL;
 	unsigned int key_larger_block_size = 0;
 	uint8_t hashed_key[HMAC_MAX_BLOCK_SIZE] = { 0 };
 	uint32_t auth_precompute = 1;
Signature · 1 line
1.8.3.1