bcm27xx: base-files: diag: fix LEDs
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / ath11k / 0018-wifi-ath11k-drop-NULL-pointer-check-in-ath11k_update.patch
1 From ac13a7842ab46a87aa315514d6d7e19b03cb2adc Mon Sep 17 00:00:00 2001
2 From: Dmitry Antipov <dmantipov@yandex.ru>
3 Date: Wed, 6 Sep 2023 12:36:55 +0300
4 Subject: [PATCH] wifi: ath11k: drop NULL pointer check in
5 ath11k_update_per_peer_tx_stats()
6
7 Since 'user_stats' is a fixed-size array of 'struct htt_ppdu_user_stats'
8 in 'struct htt_ppdu_stats', any of its member can't be NULL and so
9 relevant check may be dropped.
10
11 Found by Linux Verification Center (linuxtesting.org) with SVACE.
12
13 Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
14 Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
15 Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
16 Link: https://lore.kernel.org/r/20230906093704.14001-1-dmantipov@yandex.ru
17 ---
18 drivers/net/wireless/ath/ath11k/dp_rx.c | 3 ---
19 1 file changed, 3 deletions(-)
20
21 --- a/drivers/net/wireless/ath/ath11k/dp_rx.c
22 +++ b/drivers/net/wireless/ath/ath11k/dp_rx.c
23 @@ -1388,9 +1388,6 @@ ath11k_update_per_peer_tx_stats(struct a
24 u8 tid = HTT_PPDU_STATS_NON_QOS_TID;
25 bool is_ampdu = false;
26
27 - if (!usr_stats)
28 - return;
29 -
30 if (!(usr_stats->tlv_flags & BIT(HTT_PPDU_STATS_TAG_USR_RATE)))
31 return;
32