aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorpibr <piotrx.bronowski@intel.com>2021-06-04 16:16:26 +0000
committerPiotr Bronowski <piotrx.bronowski@intel.com>2021-06-04 18:49:15 +0200
commitd838e533f1f8f5335ceadb193fa9554f44d04fbf (patch)
treeb67d2a3beb96ac02a2fa4f6dc66422ee46b203dd /src
parent0b652134752890fd987152005ed378a9520d2c68 (diff)
dpdk: silence coverity warning on use of uninitialized value
Type: fix Signed-off-by: Piotr Bronowski <piotrx.bronowski@intel.com> Change-Id: I76923ad5035498aae821db4fd42a127617476fbb
Diffstat (limited to 'src')
-rw-r--r--src/plugins/dpdk/cryptodev/cryptodev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/dpdk/cryptodev/cryptodev.c b/src/plugins/dpdk/cryptodev/cryptodev.c
index 246951d396c..d52fa407ec5 100644
--- a/src/plugins/dpdk/cryptodev/cryptodev.c
+++ b/src/plugins/dpdk/cryptodev/cryptodev.c
@@ -881,6 +881,7 @@ cryptodev_get_common_capabilities ()
const struct rte_cryptodev_capabilities *cap;
const struct rte_cryptodev_capabilities *dev_caps;
+ clib_memset (&tmp_cap, 0, sizeof (cryptodev_capability_t));
if (vec_len (cmt->cryptodev_inst) == 0)
return;
dev_inst = vec_elt_at_index (cmt->cryptodev_inst, 0);