mac80211 also reports an IPv6 address change of a station interface that is down, whose drv_priv ieee80211_do_stop() cleared. mt7921_ipv6_addr_change() then queues the ND offload addresses for bss_idx 0, which can be the BSS of another interface. Skip the update while the interface is not added to the driver. Fixes: 479ffee68d59 ("wifi: mt76: mt7921: fix NULL pointer access in mt7921_ipv6_addr_change") Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt7921/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/main.c b/drivers/net/wireless/mediatek/mt76/mt7921/main.c index 09574d4417cd..6207a875996c 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7921/main.c +++ b/drivers/net/wireless/mediatek/mt76/mt7921/main.c @@ -1257,6 +1257,9 @@ static void mt7921_ipv6_addr_change(struct ieee80211_hw *hw, }, }; + if (!mvif->phy) + return; + read_lock_bh(&idev->lock); list_for_each_entry(ifa, &idev->addr_list, if_list) { if (ifa->flags & IFA_F_TENTATIVE) -- 2.47.3