net/ice: fix illegal access when removing MAC filter
authorWenwu Ma <wenwux.ma@intel.com>
Fri, 2 Apr 2021 13:52:47 +0000 (13:52 +0000)
committerQi Zhang <qi.z.zhang@intel.com>
Tue, 13 Apr 2021 06:43:02 +0000 (08:43 +0200)
commitf4b6eb2b91f38dc9ebc6c4e2b913fd1d25f14773
tree63be32b3cd48f0fdb06d561474d205ac1d25864d
parentddbc8c16a97fd6662ecccf7e8431a9a3c7f43366
net/ice: fix illegal access when removing MAC filter

When removing the mac filter in ice_remove_all_mac_vlan_filters(),
TAILQ_FOREACH_SAFE should be used instead of TAILQ_FOREACH,
Otherwise, it will result in a illegal pointer access.

Fixes: e0dcf94a0d7f ("net/ice: support VLAN ops")
Cc: stable@dpdk.org
Signed-off-by: Wenwu Ma <wenwux.ma@intel.com>
Tested-by: Zhihong Peng <zhihongx.peng@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_ethdev.c