]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: ath12k: fix invalid memory access while processing fragmented packets
authorP Praneesh <quic_ppranees@quicinc.com>
Mon, 20 May 2024 07:00:44 +0000 (12:30 +0530)
committerKalle Valo <quic_kvalo@quicinc.com>
Sat, 25 May 2024 08:56:57 +0000 (11:56 +0300)
commit073f9f249eecd64ab9d59c91c4a23cfdcc02afe4
tree0bbc41e3f1dda109379e34b1430b0fa8e3c897fc
parent33322e3ef07409278a18c6919c448e369d66a18e
wifi: ath12k: fix invalid memory access while processing fragmented packets

The monitor ring and the reo reinject ring share the same ring mask index.
When the driver receives an interrupt for the reo reinject ring, the
monitor ring is also processed, leading to invalid memory access. Since
monitor support is not yet enabled in ath12k, the ring mask for the monitor
ring should be removed.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.1.1-00209-QCAHKSWPL_SILICONZ-1

Fixes: d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices")
Signed-off-by: P Praneesh <quic_ppranees@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20240520070045.631029-3-quic_ppranees@quicinc.com
drivers/net/wireless/ath/ath12k/hw.c