net/i40e: fix use after free in FDIR release
authorDapeng Yu <dapengx.yu@intel.com>
Fri, 4 Jun 2021 02:02:01 +0000 (10:02 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Thu, 10 Jun 2021 10:04:16 +0000 (12:04 +0200)
commit4b5b8ce8ffe57c611ccee438dea67b612021cfba
tree6fd53b5069822f1d32fe886cf7eb51f879db8626
parent8751894ed4aed17284cbddbc51f36efe70b5234c
net/i40e: fix use after free in FDIR release

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

Fixes: 460d1679586e ("drivers/net: delete HW rings while freeing queues")
Cc: stable@dpdk.org
Signed-off-by: Dapeng Yu <dapengx.yu@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/i40e/i40e_fdir.c