summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2019-06-05 15:11:23 +0100
committerThomas Monjalon <thomas@monjalon.net>2019-06-05 18:37:08 +0200
commit16c4ea4ed6664974c7bfcdae8ffa7b4be3472c18 (patch)
tree6ad99bcdd9c2050277fdd1417e6b1dd6b312f36c
parent64ac6feb8291eb0fe74cf965dd3890625f8f3171 (diff)
downloaddpdk-next-eventdev-16c4ea4ed6664974c7bfcdae8ffa7b4be3472c18.zip
dpdk-next-eventdev-16c4ea4ed6664974c7bfcdae8ffa7b4be3472c18.tar.gz
dpdk-next-eventdev-16c4ea4ed6664974c7bfcdae8ffa7b4be3472c18.tar.xz
crypto/aesni_mb: fix build with gcc 4.8.5
On CentOS/RHEL 7, we get build errors reported due to a variable being possibly uninitialized. Setting a default init value fixes this issue. Fixes: c68d7aa354f6 ("crypto/aesni_mb: use architecture independent macros") Cc: stable@dpdk.org Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
-rw-r--r--drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c
index 8bcfe79..edb6608 100644
--- a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c
+++ b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c
@@ -104,7 +104,7 @@ aesni_mb_set_session_auth_parameters(const MB_MGR *mb_mgr,
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;