1. 29 1月, 2015 1 次提交
    • M
      b43: Fix locking FIXME in beacon update top half · a75d46a4
      Michael Büsch 提交于
      b43 has a FIXME about locking in the mac80211 set-beacon-int callback for a long time.
      As it turns out there actually is a tiny race window that could result in
      a use-after-free bug of the 'current_beacon' memory.
      Nobody ever reported this, so it probably never happened.
      
      Fix this by adding a spin lock that protects the current_beacon access.
      We must not be in atomic context while accessing hardware (due to SDIO),
      so the beacon update bottom half has to clone the skb and release the lock
      before writing it to hardware.
      
      Let's all hope that this stops the troll who is trying to submit incorrect
      fixes for this issue repeatedly.
      And let's hope that I'm not a troll, too, who just hides even more evil code
      in an even more complex attempt to fix the issue.
      Signed-off-by: NMichael Buesch <m@bues.ch>
      Tested-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      a75d46a4
  2. 24 1月, 2015 1 次提交
    • S
      b43: stop leds during suspend · 6b47aaca
      Sabrina Dubroca 提交于
      Call b43_leds_stop during suspend to avoid this WARN:
      
      WARNING: CPU: 1 PID: 0 at net/mac80211/util.c:755 ieee80211_can_queue_work.isra.11+0x35/0x50 [mac80211]()
      queueing ieee80211 work while going to suspend
      
       [...]
      
      Call Trace:
       [<c165fb2a>] dump_stack+0x48/0x69
       [<c1052f7b>] warn_slowpath_common+0x8b/0xc0
       [<f9c30225>] ? ieee80211_can_queue_work.isra.11+0x35/0x50 [mac80211]
       [<f9c30225>] ? ieee80211_can_queue_work.isra.11+0x35/0x50 [mac80211]
       [<c1052fe3>] warn_slowpath_fmt+0x33/0x40
       [<f9c30225>] ieee80211_can_queue_work.isra.11+0x35/0x50 [mac80211]
       [<f9c30260>] ieee80211_queue_work+0x20/0x40 [mac80211]
       [<f9f25d78>] b43_led_brightness_set+0x28/0x30 [b43]
       [<c14f3835>] led_timer_function+0xd5/0xe0
       [<c10cb534>] call_timer_fn+0xa4/0x4a0
      Signed-off-by: NSabrina Dubroca <sd@queasysnail.net>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      6b47aaca
  3. 20 11月, 2014 1 次提交
  4. 11 11月, 2014 1 次提交
  5. 16 9月, 2014 8 次提交
  6. 12 9月, 2014 5 次提交
  7. 26 8月, 2014 7 次提交
  8. 01 8月, 2014 2 次提交
  9. 29 7月, 2014 1 次提交
  10. 24 7月, 2014 5 次提交
  11. 23 7月, 2014 8 次提交