net/ice: fix unsafe tailq element removal
authorBeilei Xing <beilei.xing@intel.com>
Fri, 19 Jul 2019 05:28:28 +0000 (13:28 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 23 Jul 2019 12:31:36 +0000 (14:31 +0200)
commiteec6a3394e4a399d40916685f113bdec33a55704
tree95dcf2583c67264619f63ab9711dafbcb8689d0b
parentf0027fa182c7f3badea96a1e993eb74aae53309d
net/ice: fix unsafe tailq element removal

TAILQ_FOREACH macro is not safe to remove elements
during iterating tailq lists. Replace it with
TAILQ_FOREACH_SAFE.

Fixes: d76116a4678f ("net/ice: add generic flow API")

Signed-off-by: Beilei Xing <beilei.xing@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_generic_flow.c