commit | 3f82eb56d8c89a39f9e401c67dddebe0c25e14e8 | [log] [tgz] |
---|---|---|
author | developer <developer@mediatek.com> | Mon Jul 03 14:53:36 2023 +0800 |
committer | developer <developer@mediatek.com> | Wed Jul 05 12:18:57 2023 +0800 |
tree | b3813aad31a5659fb0d0386111cb1d5fab58fdba | |
parent | 021a15a16c18cfa77f45e450e88ed2f3c1ca1b32 [diff] |
[][Kernel][hnat][Fix possibly null pointer and memory leak] [Description] Fix possibly null pointer and memory leak. When skb_headroom(skb) < FOE_INFO_LEN, it means that hnat headroom of the message is incomplete and may have been truncated by other functions. HNAT should return and not relalloc skb. If without the patch, may met NULL pointer and memory leak issue. [Release-log] N/A Change-Id: I490191fa2be5fd1d664b228ef7c97951d0efe036 Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7694271