b3fa893d84
The code uses "entry" in the next loop of LIST_FOREACH after calling free() on it 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 <zhaojg@arraynetworks.com.cn> Acked-by: Bruce Richardson <bruce.richardson@intel.com>