aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorKarthikeyan Periyasamy <[email protected]>2025-01-12 07:16:30 +0000
committerJeff Johnson <[email protected]>2025-01-14 20:53:01 +0000
commit4aae869847ce50da902005ce4d84505d54e739c9 (patch)
tree1cb7fd7ee02f121fa1dd7f8b1b889da6559854f7 /net/unix/sysctl_net_unix.c
parentwifi: ath12k: Remove ath12k_get_num_hw() helper function (diff)
downloadkernel-4aae869847ce50da902005ce4d84505d54e739c9.tar.gz
kernel-4aae869847ce50da902005ce4d84505d54e739c9.zip
wifi: ath12k: Fix uninitialized variable access in ath12k_mac_allocate() function
Currently, the uninitialized variable 'ab' is accessed in the ath12k_mac_allocate() function. Initialize 'ab' with the first radio device present in the hardware abstraction handle (ah). Additionally, move the default setting procedure from the pdev mapping iteration to the total radio calculating iteration for better code readability. Perform the maximum radio validation check for total_radio to ensure that both num_hw and radio_per_hw are validated indirectly, as these variables are derived from total_radio. This also fixes the below Smatch static checker warning. Smatch warning: ath12k_mac_allocate() error: uninitialized symbol 'ab' Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1 Fixes: a343d97f27f5 ("wifi: ath12k: move struct ath12k_hw from per device to group") Signed-off-by: Karthikeyan Periyasamy <[email protected]> Acked-by: Jeff Johnson <[email protected]> Acked-by: Kalle Valo <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jeff Johnson <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions