net/ixgbe: fix flow entry access after freeing
The original code use a heap pointer after it is freed.
This patch fix it.
Fixes: a14de8b498
("net/ixgbe: destroy consistent filter")
Cc: stable@dpdk.org
Signed-off-by: Dapeng Yu <dapengx.yu@intel.com>
Reviewed-by: Haiyue Wang <haiyue.wang@intel.com>
This commit is contained in:
parent
65b2ec7b4f
commit
75e4023dd7
@ -3437,6 +3437,7 @@ ixgbe_flow_destroy(struct rte_eth_dev *dev,
|
||||
TAILQ_REMOVE(&ixgbe_flow_list,
|
||||
ixgbe_flow_mem_ptr, entries);
|
||||
rte_free(ixgbe_flow_mem_ptr);
|
||||
break;
|
||||
}
|
||||
}
|
||||
rte_free(flow);
|
||||
|
Loading…
Reference in New Issue
Block a user