diff options
| author | Wen Gong <quic_wgong@quicinc.com> | 2023-07-26 05:26:25 -0400 |
|---|---|---|
| committer | Kalle Valo <quic_kvalo@quicinc.com> | 2023-08-02 19:54:18 +0300 |
| commit | 8ad314da54c6dd223a6b6cc85019160aa842f659 (patch) | |
| tree | cc941949ed35aa7aecec245fc381ce15ebda33e8 /tools/perf/scripts/python | |
| parent | 13329d0cb7212b058bd8451a99d215a8f97645ea (diff) | |
wifi: ath12k: Fix a NULL pointer dereference in ath12k_mac_op_hw_scan()
In ath12k_mac_op_hw_scan(), the return value of kzalloc() is directly
used in memcpy(), which may lead to a NULL pointer dereference on
failure of kzalloc().
Fix this bug by adding a check of arg.extraie.ptr.
Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4
Signed-off-by: Wen Gong <quic_wgong@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20230726092625.3350-1-quic_wgong@quicinc.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
