diff --git a/mt76x02_mac.c b/mt76x02_mac.c index 4fb9f095..b2c43363 100644 --- a/mt76x02_mac.c +++ b/mt76x02_mac.c @@ -452,7 +452,7 @@ void mt76x02_send_tx_status(struct mt76x02_dev *dev, if (stat->wcid < ARRAY_SIZE(dev->mt76.wcid)) wcid = rcu_dereference(dev->mt76.wcid[stat->wcid]); - if (wcid) { + if (wcid && wcid->sta) { void *priv; priv = msta = container_of(wcid, struct mt76x02_sta, wcid);