Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 81815
b: refs/heads/master
c: 8712f27
h: refs/heads/master
i:
  81813: 63c0b51
  81811: e6f9abd
  81807: 0672887
v: v3
  • Loading branch information
Michael Buesch authored and David S. Miller committed Feb 1, 2008
1 parent f968721 commit fd1ff85
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: 1946a2c3c6d138f0e1face8734226d9ba090e831
refs/heads/master: 8712f2769dd66d8e7ff179d525b93e0a15a5b963
9 changes: 8 additions & 1 deletion trunk/drivers/net/wireless/b43legacy/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3221,6 +3221,7 @@ static int b43legacy_op_start(struct ieee80211_hw *hw)
struct b43legacy_wldev *dev = wl->current_dev;
int did_init = 0;
int err = 0;
bool do_rfkill_exit = 0;

/* First register RFkill.
* LEDs that are registered later depend on it. */
Expand All @@ -3230,8 +3231,10 @@ static int b43legacy_op_start(struct ieee80211_hw *hw)

if (b43legacy_status(dev) < B43legacy_STAT_INITIALIZED) {
err = b43legacy_wireless_core_init(dev);
if (err)
if (err) {
do_rfkill_exit = 1;
goto out_mutex_unlock;
}
did_init = 1;
}

Expand All @@ -3240,13 +3243,17 @@ static int b43legacy_op_start(struct ieee80211_hw *hw)
if (err) {
if (did_init)
b43legacy_wireless_core_exit(dev);
do_rfkill_exit = 1;
goto out_mutex_unlock;
}
}

out_mutex_unlock:
mutex_unlock(&wl->mutex);

if (do_rfkill_exit)
b43legacy_rfkill_exit(dev);

return err;
}

Expand Down

0 comments on commit fd1ff85

Please sign in to comment.