]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00: Fix broken recover-on-error path
authorIvo van Doorn <ivdoorn@gmail.com>
Mon, 5 May 2008 15:23:47 +0000 (17:23 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 13 May 2008 01:22:17 +0000 (21:22 -0400)
commit34b0a2114499a367508909bd659a06537f386aa7
treea8883598faacce6268b445dc6efd7d0a089f7a75
parent1613e95afc66497a02488e467e1667351126cc83
rt2x00: Fix broken recover-on-error path

During initialization the initialize() callback function
in rt2x00pci and rt2x00usb will cleanup the mess they made.

rt2x00lib shouldn't call uninitialize because the callback function already
cleaned up _and_ the DEVICE_INITIALIZED isn't set which causes the
rt2x00lib_uninitialize() to halt directly anyway. All that is required
to be cleaned up by rt2x00lib is the queue, and that can be done by
calling rt2x00queue_uninitialize() directly.

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00dev.c