mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt7915: fix crash on tx rate report for invalid stations
Check wcid RCU pointer before using it Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -522,6 +522,9 @@ mt7915_mcu_tx_rate_report(struct mt7915_dev *dev, struct sk_buff *skb)
|
||||
return;
|
||||
|
||||
wcid = rcu_dereference(dev->mt76.wcid[wcidx]);
|
||||
if (!wcid)
|
||||
return;
|
||||
|
||||
msta = container_of(wcid, struct mt7915_sta, wcid);
|
||||
stats = &msta->stats;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user