Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 166277
b: refs/heads/master
c: e899a3f
h: refs/heads/master
i:
  166275: d9eaee8
v: v3
  • Loading branch information
Michael Buesch authored and John W. Linville committed Sep 23, 2009
1 parent 0eda687 commit 88b590a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 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: 9308779aad721cab8434fd5f98d3c85d3716fdec
refs/heads/master: e899a3f232125c393cdf7f7bf6533501ef8808fb
7 changes: 3 additions & 4 deletions trunk/drivers/net/wireless/b43/leds.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,7 @@ static void b43_led_brightness_set(struct led_classdev *led_dev,
struct b43_led *led = container_of(led_dev, struct b43_led, led_dev);
struct b43_wl *wl = led->wl;

/* The check for current_dev is only needed while unregistering,
* so it is sequencial and does not race. But we must not dereference
* current_dev here. */
if (likely(wl->current_dev)) {
if (likely(!wl->leds.stop)) {
atomic_set(&led->state, brightness);
ieee80211_queue_work(wl->hw, &wl->leds.work);
}
Expand Down Expand Up @@ -314,6 +311,8 @@ void b43_leds_init(struct b43_wldev *dev)
break;
}
}

dev->wl->leds.stop = 0;
}

void b43_leds_exit(struct b43_wldev *dev)
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/net/wireless/b43/leds.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ struct b43_leds {
struct b43_led led_radio;
struct b43_led led_assoc;

bool stop;
struct work_struct work;
};

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/b43/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4987,7 +4987,7 @@ static void b43_remove(struct ssb_device *dev)
* might have modified it. Restoring is important, so the networking
* stack can properly free resources. */
wl->hw->queues = wl->mac80211_initially_registered_queues;
wl->current_dev = NULL;
wl->leds.stop = 1;
cancel_work_sync(&wl->leds.work);
ieee80211_unregister_hw(wl->hw);
}
Expand Down

0 comments on commit 88b590a

Please sign in to comment.