diff --git a/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_hnat/hnat_nf_hook.c b/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_hnat/hnat_nf_hook.c index 6b4f2139c9..c45dacb21d 100644 --- a/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_hnat/hnat_nf_hook.c +++ b/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_hnat/hnat_nf_hook.c @@ -1256,6 +1256,9 @@ static unsigned int skb_to_hnat_info(struct sk_buff *skb, entry.bfib1.pkt_type = foe->udib1.pkt_type; /* Get packte type state*/ entry.bfib1.state = foe->udib1.state; + if (unlikely(entry.bfib1.state != UNBIND)) + return 0; + #if defined(CONFIG_MEDIATEK_NETSYS_V2) entry.bfib1.sp = foe->udib1.sp; #endif