wifi: ath12k: Avoid NULL pointer access during management transmit cleanup
authorBalamurugan S <quic_bselvara@quicinc.com>
Thu, 1 Jun 2023 10:35:15 +0000 (13:35 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Fri, 9 Jun 2023 13:31:52 +0000 (16:31 +0300)
commit054b5580a36e435692c203c19abdcb9f7734320e
treea640682b19f518e12b8d29740155b1afc271ab37
parent37fdb33c87c2fa9f83f0f3f0ae5a007c1e917052
wifi: ath12k: Avoid NULL pointer access during management transmit cleanup

Currently 'ar' reference is not added in skb_cb.
Though this is generally not used during transmit completion
callbacks, on interface removal the remaining idr cleanup callback
uses the ar pointer from skb_cb from management txmgmt_idr. Hence fill them
during transmit call for proper usage to avoid NULL pointer dereference.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1

Signed-off-by: Balamurugan S <quic_bselvara@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20230518071046.14337-1-quic_bselvara@quicinc.com
drivers/net/wireless/ath/ath12k/mac.c