Skip to content

Commit

Permalink
efd: fix uninitialized structure
Browse files Browse the repository at this point in the history
[ upstream commit ecda2c4 ]

Coverity flags that both elements of efd_online_group_entry
are used uninitialized. This is OK because this structure
is initially used for starting values, so any value is OK.

Coverity ID: 375868
Fixes: 56b6ef8 ("efd: new Elastic Flow Distributor library")

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Yipeng Wang <yipeng1.wang@intel.com>
  • Loading branch information
pablodelara authored and bluca committed Feb 28, 2022
1 parent 5cd3c07 commit ffc6e4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/librte_efd/rte_efd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ rte_efd_update(struct rte_efd_table * const table, const unsigned int socket_id,
{
uint32_t chunk_id = 0, group_id = 0, bin_id = 0;
uint8_t new_bin_choice = 0;
struct efd_online_group_entry entry;
struct efd_online_group_entry entry = {{0}};

int status = efd_compute_update(table, socket_id, key, value,
&chunk_id, &group_id, &bin_id,
Expand Down

0 comments on commit ffc6e4e

Please sign in to comment.