]> Git Repo - esp-hosted.git/commit
esp_hosted_ng: fix skb leak in process_rx_packet
authorMax Filippov <[email protected]>
Mon, 19 Feb 2024 03:25:14 +0000 (19:25 -0800)
committerBOT <[email protected]>
Mon, 19 Feb 2024 05:29:07 +0000 (13:29 +0800)
commit4527e1040cdc0c5a0e4d957fd30ec0a4e7cc046d
treeeceb71b3ec05f5b65017eae0a6e8c1e6bfcbbbcf
parentcdd6cb66295e879f83096eaece20839ef831bcfb
esp_hosted_ng: fix skb leak in process_rx_packet

process_rx_packet() doesn't free the original skb when PACKET_TYPE_EAPOL
packet is processed. Add dev_kfree_skb_any(skb) calls to both success
and error paths of the PACKET_TYPE_EAPOL message processing code.
This fixes memory leaks reported by the kernel built with KMEMLEAK.

Signed-off-by: Max Filippov <[email protected]>
Signed-off-by: Kapil Gupta <[email protected]>
esp_hosted_ng/host/main.c
This page took 0.023018 seconds and 5 git commands to generate.