]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: ath10k: fix NULL pointer dereference in ath10k_wmi_tlv_op_pull_mgmt_tx_compl_ev()
authorXingyuan Mo <hdthky0@gmail.com>
Sun, 17 Dec 2023 11:29:01 +0000 (13:29 +0200)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:20 +0000 (18:19 -0400)
commit10a342fa2fe4c4dd22f2c8fe917d3b1929582076
tree514b0b5ebf06f2e2df9e5c1e8af54353d676deff
parent76b512a49f10ed3be90c2bb7a4337a723eb85385
wifi: ath10k: fix NULL pointer dereference in ath10k_wmi_tlv_op_pull_mgmt_tx_compl_ev()

[ Upstream commit ad25ee36f00172f7d53242dc77c69fff7ced0755 ]

We should check whether the WMI_TLV_TAG_STRUCT_MGMT_TX_COMPL_EVENT tlv is
present before accessing it, otherwise a null pointer deference error will
occur.

Fixes: dc405152bb64 ("ath10k: handle mgmt tx completion event")
Signed-off-by: Xingyuan Mo <hdthky0@gmail.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20231208043433.271449-1-hdthky0@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/ath/ath10k/wmi-tlv.c