diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2022-08-16 13:32:12 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2022-09-15 14:15:49 +0300 |
commit | 5e45533e4ba22e7047aba6a58217b0e0af133a1a (patch) | |
tree | f41a50567d4cfa098b8b99324e1993b100ea0b96 | |
parent | 2ac22300c7ac4aa90c7f3915f82d9c55756581a8 (diff) |
wifi: mt76: fix uninitialized pointer in mt7921_mac_fill_rx
Initialize msta pointer to NULL in mt7921_mac_fill_rx() in order to not
dereference a uninitialized pointer.
Fixes: 0880d40871d1d ("mt76: connac: move mt76_connac2_reverse_frag0_hdr_trans in mt76-connac module")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r-- | mt7921/mac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mt7921/mac.c b/mt7921/mac.c index 7af87612..9c82ec24 100644 --- a/mt7921/mac.c +++ b/mt7921/mac.c @@ -235,7 +235,7 @@ mt7921_mac_fill_rx(struct mt7921_dev *dev, struct sk_buff *skb) u32 rxd2 = le32_to_cpu(rxd[2]); u32 rxd3 = le32_to_cpu(rxd[3]); u32 rxd4 = le32_to_cpu(rxd[4]); - struct mt7921_sta *msta; + struct mt7921_sta *msta = NULL; u16 seq_ctrl = 0; __le16 fc = 0; u8 mode = 0; |