net/ice: fix double free ACL flow entry
authorDapeng Yu <dapengx.yu@intel.com>
Fri, 3 Sep 2021 10:04:11 +0000 (18:04 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Fri, 24 Sep 2021 05:46:57 +0000 (07:46 +0200)
commite360df56477a0b5963a743d82f399efd468ec10c
tree5c80c34a688fa2b2743b0f57042b0fc730ea6b65
parentde5bef335eeac3a0b1e29eb2c5fabbcadb9549eb
net/ice: fix double free ACL flow entry

If call ice_flow_rem_entry() directly without checking entry_id, may
cause an ACL flow entry to be freed more than once.

This patch tries to find entry_id first, then call ice_flow_rem_entry()
to avoid the defect.

Fixes: 40d466fa9f76 ("net/ice: support ACL filter in DCF")
Cc: stable@dpdk.org
Signed-off-by: Dapeng Yu <dapengx.yu@intel.com>
Reviewed-by: Simei Su <simei.su@intel.com>
drivers/net/ice/ice_acl_filter.c