From 1c20c2f774d3b415a20c1cb7fb197bd53e82b7a4 Mon Sep 17 00:00:00 2001 From: pibr Date: Fri, 4 Jun 2021 16:16:26 +0000 Subject: dpdk: silence coverity warning on use of uninitialized value Type: fix Signed-off-by: Piotr Bronowski Change-Id: I76923ad5035498aae821db4fd42a127617476fbb (cherry picked from commit d838e533f1f8f5335ceadb193fa9554f44d04fbf) --- src/plugins/dpdk/cryptodev/cryptodev.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/plugins/dpdk') 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); -- cgit 1.2.3-korg