1- From git@z Thu Jan 1 00:00:00 1970
2- Subject: [PATCH] wifi: mt76: mt7996: Initialize hdr before passing to
3- skb_put_data()
1+ From 87b07a1fbc6b5c23d3b3584ab4288bc9106d3274 Mon Sep 17 00:00:00 2001
42From: Nathan Chancellor <
[email protected] >
53Date: Tue, 15 Jul 2025 15:33:25 -0700
6- Message-Id: <20250715-mt7996-fix-uninit-const-pointer-v1-1-b5d8d11d7b78@kernel.org>
7- MIME-Version: 1.0
8- Content-Type: text/plain; charset="utf-8"
9- Content-Transfer-Encoding: 7bit
4+ Subject: wifi: mt76: mt7996: Initialize hdr before passing to skb_put_data()
105
116A new warning in clang [1] points out a couple of places where a hdr
127variable is not initialized then passed along to skb_put_data().
2520Fixes: 98686cd21624 ("wifi: mt76: mt7996: add driver for MediaTek Wi-Fi 7 (802.11be) devices")
2621Link: https://github.com/llvm/llvm-project/commit/00dacf8c22f065cb52efb14cd091d441f19b319e [1]
2722Closes: https://github.com/ClangBuiltLinux/linux/issues/2104
28- Link: https://lore.kernel.org/r/20250715-mt7996-fix-uninit-const-pointer-v1-1-b5d8d11d7b78@kernel.org
2923Signed-off-by: Nathan Chancellor <
[email protected] >
24+ Link: https://patch.msgid.link/20250715-mt7996-fix-uninit-const-pointer-v1-1-b5d8d11d7b78@kernel.org
25+ Signed-off-by: Felix Fietkau <
[email protected] >
3026---
3127 drivers/net/wireless/mediatek/mt76/mt7996/mcu.c | 4 ++--
3228 1 file changed, 2 insertions(+), 2 deletions(-)
3329
3430diff --git a/drivers/net/wireless/mediatek/mt76/mt7996/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
35- index 994526c65bfc..640abb4dce7f 100644
31+ index 3593fd40c51b6c..fe1b34386de232 100644
3632--- a/drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
3733+++ b/drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
3834@@ -1879,8 +1879,8 @@ mt7996_mcu_get_mmps_mode(enum ieee80211_smps_mode smps)
@@ -45,7 +41,7 @@ index 994526c65bfc..640abb4dce7f 100644
4541 struct sk_buff *skb;
4642 struct tlv *tlv;
4743 int len;
48- @@ -3373 ,7 +3373 ,7 @@ int mt7996_mcu_set_hdr_trans(struct mt7996_dev *dev, bool hdr_trans)
44+ @@ -3372 ,7 +3372 ,7 @@ int mt7996_mcu_set_hdr_trans(struct mt7996_dev *dev, bool hdr_trans)
4945 {
5046 struct {
5147 u8 __rsv[4];
@@ -54,12 +50,6 @@ index 994526c65bfc..640abb4dce7f 100644
5450 struct hdr_trans_blacklist *req_blacklist;
5551 struct hdr_trans_en *req_en;
5652 struct sk_buff *skb;
57-
58- ---
59- base-commit: eb8352ee2d1e70f916fac02094dca2b435076fa4
60- change-id: 20250715-mt7996-fix-uninit-const-pointer-01e1dd03d444
61-
62- Best regards,
63- - -
64- Nathan Chancellor <
[email protected] >
53+ - -
54+ cgit 1.2.3-korg
6555
0 commit comments