Skip to content
Commit 17a5f6a7 authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller
Browse files

net: ethernet: mtk_eth_soc: use after free in __mtk_ppe_check_skb()



The __mtk_foe_entry_clear() function frees "entry" so we have to use
the _safe() version of hlist_for_each_entry() to prevent a use after
free.

Fixes: 33fc42de ("net: ethernet: mtk_eth_soc: support creating mac address based offload entries")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2240514c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment