diff options
author | pibr <piotrx.bronowski@intel.com> | 2021-06-04 16:16:26 +0000 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2021-06-07 16:02:02 +0000 |
commit | 1c20c2f774d3b415a20c1cb7fb197bd53e82b7a4 (patch) | |
tree | cc62b655370386f4894039cc432e68733c99951e | |
parent | ce4716f4e296aee66bd76e1edd7820e8a5dae6eb (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)
-rw-r--r-- | src/plugins/dpdk/cryptodev/cryptodev.c | 1 |
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); |