Skip to content

Commit

Permalink
net/ixgbe: fix flow entry access after freeing
Browse files Browse the repository at this point in the history
[ upstream commit 75e4023 ]

The original code use a heap pointer after it is freed.
This patch fix it.

Fixes: a14de8b ("net/ixgbe: destroy consistent filter")

Signed-off-by: Dapeng Yu <dapengx.yu@intel.com>
Reviewed-by: Haiyue Wang <haiyue.wang@intel.com>
  • Loading branch information
yudapengx authored and cpaelzer committed Aug 9, 2021
1 parent b8cbdce commit f9a4c1e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ixgbe/ixgbe_flow.c
Expand Up @@ -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);
Expand Down

0 comments on commit f9a4c1e

Please sign in to comment.