提交 c12b7c79 编写于 作者: F Felix Fietkau

mt76: mt7915: fix crash on tx rate report for invalid stations

Check wcid RCU pointer before using it
Signed-off-by: NFelix Fietkau <nbd@nbd.name>
上级 4bf04d33
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册