linux-stable/drivers/net/wireless/rtl818x
Larry Finger 37b12dd2b0 rtl8187: Fix kernel oops when device is removed when LEDS enabled
As reported by Rick Farina (sidhayn@gmail.com), removing the RTL8187
USB stick, or unloading the driver rtl8187 using rmmod will cause a
kernel oops.  There are at least two forms of the failure, (1) BUG:
Scheduling while atomic, and (2) a fatal kernel page fault. This
problem is reported in Bugzilla #14539.

This problem does not occur for kernel 2.6.31, but does for 2.6.32-rc2,
thus it is technically a regression; however, bisection did not locate
any faulty patch. The fix was found by comparing the faulty code in
rtl8187 with p54usb.  My interpretation is that the handling of work
queues in mac80211 changed enough to the LEDs to be unregistered
before tasks on the work queues are cancelled. Previously, these
actions could be done in either order.

(Herton Ronaldo Krzesinski <herton@mandriva.com.br> reports that the
code is the same in 2.6.31, so this may be a candidate for 2.6.31.x.
-- JWL)

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Reported-by: Rick Farina <sidhayn@gmail.com>
Tested-by: Rick Farina <sidhayn@gmail.com>
Cc: stable@kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2009-11-04 19:20:50 -05:00
..
Makefile rtl8187: Implement rfkill support 2009-08-28 14:40:52 -04:00
rtl818x.h rtl8187: Implement rfkill support 2009-08-28 14:40:52 -04:00
rtl8180.h
rtl8180_dev.c mac80211: allow configure_filter callback to sleep 2009-08-20 11:35:58 -04:00
rtl8180_grf5101.c
rtl8180_grf5101.h
rtl8180_max2820.c
rtl8180_max2820.h
rtl8180_rtl8225.c
rtl8180_rtl8225.h
rtl8180_sa2400.c
rtl8180_sa2400.h
rtl8187.h rtl8187: Implement rfkill support 2009-08-28 14:40:52 -04:00
rtl8187_dev.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2009-09-02 00:32:56 -07:00
rtl8187_leds.c rtl8187: Fix kernel oops when device is removed when LEDS enabled 2009-11-04 19:20:50 -05:00
rtl8187_leds.h
rtl8187_rfkill.c rtl8187: Implement rfkill support 2009-08-28 14:40:52 -04:00
rtl8187_rfkill.h rtl8187: Implement rfkill support 2009-08-28 14:40:52 -04:00
rtl8187_rtl8225.c rtl8187: use DMA-aware buffers with usb_control_msg 2009-05-11 15:07:01 -04:00
rtl8187_rtl8225.h