[dpdk-dev] [PATCH v2] i40e: fix using memory after free issue

2016-03-25 Thread Bruce Richardson
On Fri, Mar 25, 2016 at 09:17:01AM +, Jiangu Zhao wrote: > The old code still uses entry in the next loop of LIST_FOREACH after free() > in i40e_res_pool_destroy(). > Change to a safe way to free entry, which is similar with LIST_FOREACH_SAFE > in FreeBSD. > > Fixes: 4861cde46116 ("i40e: new

[dpdk-dev] [PATCH v2] i40e: fix using memory after free issue

2016-03-25 Thread Jiangu Zhao
The old code still uses entry in the next loop of LIST_FOREACH after free() in i40e_res_pool_destroy(). Change to a safe way to free entry, which is similar with LIST_FOREACH_SAFE in FreeBSD. Fixes: 4861cde46116 ("i40e: new poll mode driver") Signed-off-by: Jiangu Zhao --- drivers/net/i40e/i4