mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH ath-next 0/2] wifi: ath12k: fix 2 instances of Smatch warnings
@ 2025-08-04  3:03 Baochen Qiang
  2025-08-04  3:03 ` [PATCH ath-next 1/2] wifi: ath12k: initialize eirp_power before use Baochen Qiang
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Baochen Qiang @ 2025-08-04  3:03 UTC (permalink / raw)
  To: Jeff Johnson, Baochen Qiang, Vasanthakumar Thiagarajan
  Cc: Jeff Johnson, linux-wireless, ath12k, linux-kernel,
	Baochen Qiang, kernel test robot, Dan Carpenter

Fix below two Smatch warnings:

1#
drivers/net/wireless/ath/ath12k/mac.c:10069
ath12k_mac_fill_reg_tpc_info() error: uninitialized symbol 'eirp_power'.

2#
drivers/net/wireless/ath/ath12k/mac.c:9812
ath12k_mac_parse_tx_pwr_env() error: buffer overflow 'local_non_psd->power' 5 <= 15
drivers/net/wireless/ath/ath12k/mac.c:9812
ath12k_mac_parse_tx_pwr_env() error: buffer overflow 'reg_non_psd->power' 5 <= 15

Signed-off-by: Baochen Qiang <baochen.qiang@oss.qualcomm.com>
---
Baochen Qiang (2):
      wifi: ath12k: initialize eirp_power before use
      wifi: ath12k: fix overflow warning on num_pwr_levels

 drivers/net/wireless/ath/ath12k/mac.c | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)
---
base-commit: 4cedae6335644a5858e1bc2c367aedc10482b654
change-id: 20250716-ath12k-fix-smatch-warning-on-6g-vlp-a97cb86f3a16

Best regards,
-- 
Baochen Qiang <baochen.qiang@oss.qualcomm.com>


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-09-18 23:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-04  3:03 [PATCH ath-next 0/2] wifi: ath12k: fix 2 instances of Smatch warnings Baochen Qiang
2025-08-04  3:03 ` [PATCH ath-next 1/2] wifi: ath12k: initialize eirp_power before use Baochen Qiang
2025-08-04  3:03 ` [PATCH ath-next 2/2] wifi: ath12k: fix overflow warning on num_pwr_levels Baochen Qiang
2025-08-06 14:10 ` [PATCH ath-next 0/2] wifi: ath12k: fix 2 instances of Smatch warnings Jeff Johnson
2025-08-11  3:38   ` Baochen Qiang
2025-09-17  3:45 ` Vasanthakumar Thiagarajan
2025-09-18 23:47 ` Jeff Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®