net/i40e: fix unsafe tailq element removal
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Fri, 22 Jul 2016 14:02:02 +0000 (15:02 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 22 Jul 2016 15:54:08 +0000 (17:54 +0200)
commit763197ad731e9cfabc7d7399084d41da3d25dce4
tree818a6b63339b62a9f664e2b59507e1bc75924f1e
parent954d6cf5741e2a3efb7f97852833a1ee0a1f165a
net/i40e: fix unsafe tailq element removal

i40e driver was removing elements when iterating tailq lists
with TAILQ_FOREACH macro, which is not safe.
It is especially visible since the memory is zeroed on free
(commit ea0bddbd14e6).

Instead, TAILQ_FOREACH_SAFE macro is used when removing/freeing
these elements.

Fixes: 4861cde46116 ("i40e: new poll mode driver")
Fixes: 440499cf5376 ("net/i40e: support floating VEB")

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
drivers/net/i40e/i40e_ethdev.c