Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97480
b: refs/heads/master
c: 3bf0a32
h: refs/heads/master
v: v3
  • Loading branch information
Michael Buesch authored and John W. Linville committed May 28, 2008
1 parent 1d1319b commit fdfac40
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 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: 167ad6f7a2b2ae58dfaa46620b9b3212594f38e6
refs/heads/master: 3bf0a32e22fedc0b46443699db2d61ac2a883ac4
12 changes: 10 additions & 2 deletions trunk/drivers/net/wireless/b43/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4271,7 +4271,9 @@ static void b43_chip_reset(struct work_struct *work)
goto out;
}
}
out:
out:
if (err)
wl->current_dev = NULL; /* Failed to init the dev. */
mutex_unlock(&wl->mutex);
if (err)
b43err(wl, "Controller restart FAILED\n");
Expand Down Expand Up @@ -4412,9 +4414,11 @@ static void b43_one_core_detach(struct ssb_device *dev)
struct b43_wldev *wldev;
struct b43_wl *wl;

/* Do not cancel ieee80211-workqueue based work here.
* See comment in b43_remove(). */

wldev = ssb_get_drvdata(dev);
wl = wldev->wl;
cancel_work_sync(&wldev->restart_work);
b43_debugfs_remove_device(wldev);
b43_wireless_core_detach(wldev);
list_del(&wldev->list);
Expand Down Expand Up @@ -4599,6 +4603,10 @@ static void b43_remove(struct ssb_device *dev)
struct b43_wl *wl = ssb_get_devtypedata(dev);
struct b43_wldev *wldev = ssb_get_drvdata(dev);

/* We must cancel any work here before unregistering from ieee80211,
* as the ieee80211 unreg will destroy the workqueue. */
cancel_work_sync(&wldev->restart_work);

B43_WARN_ON(!wl);
if (wl->current_dev == wldev)
ieee80211_unregister_hw(wl->hw);
Expand Down

0 comments on commit fdfac40

Please sign in to comment.