]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit37eadb4eaf82e44c118d91603d7b446ea026bb47
treee95a4f2d6cbe22722628844bcbb808e119af52f9
parent4bd80f3f3bdf42ebae5ab717f58027f588a6b3bc
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