]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: ath11k: fix error path leaks in some WMI WOW calls
authorNicolas Escande <nico.escande@gmail.com>
Wed, 6 May 2026 13:42:38 +0000 (15:42 +0200)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Tue, 12 May 2026 13:54:20 +0000 (06:54 -0700)
commit55dda532bbc261aef495e403c8900c5e2ab5fa34
treee1f410871e54ebe0d1040942f822348888ee9c91
parent7666dbb1bacc4ba522b96740cba7283d243d16e1
wifi: ath11k: fix error path leaks in some WMI WOW calls

Fix two instances where we used to directly return the result of
ath11k_wmi_cmd_send(...). Because we did not check the return value, we
also did not free the skb in the error path.

Fixes: 79802b13a492 ("ath11k: implement WoW enable and wakeup commands")
Signed-off-by: Nicolas Escande <nico.escande@gmail.com>
Reviewed-by: Baochen Qiang <baochen.qiang@oss.qualcomm.com>
Reviewed-by: Rameshkumar Sundaram <rameshkumar.sundaram@oss.qualcomm.com>
Link: https://patch.msgid.link/20260506134240.2284016-2-nico.escande@gmail.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath11k/wmi.c