We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c87309 commit eb09fbeCopy full SHA for eb09fbe
net/mac802154/iface.c
@@ -684,6 +684,10 @@ void ieee802154_if_remove(struct ieee802154_sub_if_data *sdata)
684
ASSERT_RTNL();
685
686
mutex_lock(&sdata->local->iflist_mtx);
687
+ if (list_empty(&sdata->local->interfaces)) {
688
+ mutex_unlock(&sdata->local->iflist_mtx);
689
+ return;
690
+ }
691
list_del_rcu(&sdata->list);
692
mutex_unlock(&sdata->local->iflist_mtx);
693
0 commit comments