net/ice/base: fix uninitialized struct
authorQi Zhang <qi.z.zhang@intel.com>
Tue, 2 Mar 2021 07:23:56 +0000 (15:23 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Fri, 5 Mar 2021 08:36:18 +0000 (09:36 +0100)
commit739dee1f22d9d2d537fe5d38bb90ba29606e0196
treedac37b53100970e662cb7a05bf335455bc0a7943
parent872a654998060b249f6d4f11a123664bd3276b9e
net/ice/base: fix uninitialized struct

One of the structs being used for ACL counter rules was allocated on
the stack and left uninitialized.  Rather than depending on
undefined behavior around the .amount member during rule removal,
just leave a comment and initialize the struct to zero, as this is a
slow path call anyway. This bug could have caused silent failures
during counter removal.

Fixes: f3202a097f12 ("net/ice/base: add ACL module")
Cc: stable@dpdk.org
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/ice/base/ice_flow.c