rt2x00: Fix crash on USB unplug
commit730a268a1c3d9aa0ced3d4acf448259c778c5de7
authorIvo van Doorn <ivdoorn@gmail.com>
Thu, 4 Nov 2010 19:41:05 +0000 (4 20:41 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Mar 2011 19:49:57 +0000 (23 12:49 -0700)
treeb3349ce011d4f07660029e37ba36ae07686fbd5b
parent71c36cc2a9ef5622024b1ca84a000ecd76e5cc13
rt2x00: Fix crash on USB unplug

commit 070192dd2975c0e97bbdeac7623b755235c6db7d upstream.

By not scheduling the TX/RX completion worker threads
when Radio is disabled, or hardware has been unplugged,
the queues cannot be completely cleaned.

This causes crashes when the hardware has been unplugged while
the radio is still enabled.

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Cc: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/rt2x00/rt2x00dev.c
drivers/net/wireless/rt2x00/rt2x00usb.c