rt2x00: Fix URB error handling
authorIvo van Doorn <ivdoorn@gmail.com>
Mon, 11 Oct 2010 13:39:48 +0000 (15:39 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 11 Oct 2010 19:04:26 +0000 (15:04 -0400)
commita13c8f3133b250e732c383b1c390d625e755db03
treee95a4f2d6cbe22722628844bcbb808e119af52f9
parent1a397696536e896e7d763c0c38f3ae3e588b5d52
rt2x00: Fix URB error handling

kill_urb guarentees that when the function returns, the URB has
been fully killed. This means we don't need the extra sleeping
after the call to kill_urb.

kill_urb can however also guarentee the submit_urb to fail, as
a result, we must catch the return value from submit_urb an
correctly mark the entry as owned by the driver, and the
status as broken.

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