diff options
| author | 2026-08-14 15:58:37 +0800 | |
|---|---|---|
| committer | 2026-09-21 10:58:00 -0700 | |
| commit | 93ce8ea70451e800601bc9444aa33043de15d67b (patch) | |
| tree | e5b4721eda660cb2aca54b4be07c752e7c9734ea /scripts/Makefile.thinlto | |
| parent | wifi: ath9k: Clean up device initialisation guards (diff) | |
wifi: ath9k: reject short WMI command responses
ath9k_wmi_rsp_callback() removes the validated WMI header and copies
the number of bytes expected by the waiting command into its response
buffer. A device response shorter than that expectation can therefore
be read beyond the skb payload.
Record -EMSGSIZE for a short response, complete the waiter, and return
the stored status from the command path. This also prevents callers from
consuming stale response bytes as a successful reply.
Fixes: fb9987d0f748 ("ath9k_htc: Support for AR9271 chipset.")
Assisted-by: LLM
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Link: https://patch.msgid.link/20260814075837.20005-1-pengpeng@iscas.ac.cn
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
