summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorpibr <piotrx.bronowski@intel.com>2021-06-04 16:16:26 +0000
committerDave Wallace <dwallacelf@gmail.com>2021-06-07 16:02:02 +0000
commit1c20c2f774d3b415a20c1cb7fb197bd53e82b7a4 (patch)
treecc62b655370386f4894039cc432e68733c99951e /src
parentce4716f4e296aee66bd76e1edd7820e8a5dae6eb (diff)
dpdk: silence coverity warning on use of uninitialized value
Type: fix Signed-off-by: Piotr Bronowski <piotrx.bronowski@intel.com> Change-Id: I76923ad5035498aae821db4fd42a127617476fbb (cherry picked from commit d838e533f1f8f5335ceadb193fa9554f44d04fbf)
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);