diff --git a/net/mac802154/iface.c b/net/mac802154/iface.c index c0e2da5072be..7a033e0f82d8 100644 --- a/net/mac802154/iface.c +++ b/net/mac802154/iface.c @@ -683,6 +683,9 @@ void ieee802154_if_remove(struct ieee802154_sub_if_data *sdata) { ASSERT_RTNL(); + if (sdata->dev->reg_state == NETREG_REGISTERED) + return; + mutex_lock(&sdata->local->iflist_mtx); list_del_rcu(&sdata->list); mutex_unlock(&sdata->local->iflist_mtx);