Commit be5febd5 authored by Abdun Nihaal's avatar Abdun Nihaal Committed by Jeff Johnson
Browse files

wifi: ath12k: fix potential memory leak in ath12k_wow_arp_ns_offload()



When the call to ath12k_wmi_arp_ns_offload() fails, the temporary memory
allocation for offload is not freed before returning. Fix that by
freeing offload in the error path.

Fixes: 1666108c ("wifi: ath12k: support ARP and NS offload")
Signed-off-by: default avatarAbdun Nihaal <nihaal@cse.iitm.ac.in>
Reviewed-by: default avatarBaochen Qiang <baochen.qiang@oss.qualcomm.com>
Link: https://patch.msgid.link/20251028170457.134608-1-nihaal@cse.iitm.ac.in


Signed-off-by: default avatarJeff Johnson <jeff.johnson@oss.qualcomm.com>
parent 19749831
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment