diff options
author | Baochen Qiang <[email protected]> | 2023-09-20 16:43:42 +0300 |
---|---|---|
committer | Kalle Valo <[email protected]> | 2023-09-21 11:02:36 +0300 |
commit | 9ae8c496d211155a3f220b63da364fba1a794292 (patch) | |
tree | cda8850bba3ef86d23bd34bc4346972f045c2f6f /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | b302dce3d9edea5b93d1902a541684a967f3c63c (diff) |
wifi: ath12k: fix DMA unmap warning on NULL DMA address
In ath12k_dp_tx(), if we reach fail_dma_unmap due to some errors,
current code does DMA unmap unconditionally on skb_cb->paddr_ext_desc.
However, skb_cb->paddr_ext_desc may be NULL and thus we get below
warning:
kernel: [ 8887.076212] WARNING: CPU: 3 PID: 0 at drivers/iommu/dma-iommu.c:1077 iommu_dma_unmap_page+0x79/0x90
Fix it by checking skb_cb->paddr_ext_desc before unmap it.
Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4
Fixes: d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices")
Signed-off-by: Baochen Qiang <[email protected]>
Acked-by: Jeff Johnson <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions