Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 159363
b: refs/heads/master
c: e40cbda
h: refs/heads/master
i:
  159361: 438b408
  159359: a80d9ac
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Aug 4, 2009
1 parent 3b7f736 commit c0f1856
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e46ab7f0886143846d8da2ca06c2b0e245f34dc6
refs/heads/master: e40cbdac0629402a4cb0c3bca0cc19ab7a00e00d
15 changes: 11 additions & 4 deletions trunk/net/wireless/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -725,15 +725,22 @@ static int cfg80211_netdev_notifier_call(struct notifier_block * nb,
break;
case NETDEV_UNREGISTER:
mutex_lock(&rdev->devlist_mtx);
/*
* It is possible to get NETDEV_UNREGISTER
* multiple times. To detect that, check
* that the interface is still on the list
* of registered interfaces, and only then
* remove and clean it up.
*/
if (!list_empty(&wdev->list)) {
sysfs_remove_link(&dev->dev.kobj, "phy80211");
list_del_init(&wdev->list);
}
mutex_unlock(&rdev->devlist_mtx);
mutex_destroy(&wdev->mtx);
mutex_destroy(&wdev->mtx);
#ifdef CONFIG_WIRELESS_EXT
kfree(wdev->wext.keys);
kfree(wdev->wext.keys);
#endif
}
mutex_unlock(&rdev->devlist_mtx);
break;
case NETDEV_PRE_UP:
if (!(wdev->wiphy->interface_modes & BIT(wdev->iftype)))
Expand Down

0 comments on commit c0f1856

Please sign in to comment.