rt2x00usb: Use usb anchor to manage URB
authorVishal Thanki <vishalthanki@gmail.com>
Sat, 19 Mar 2016 10:41:01 +0000 (11:41 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 6 Apr 2016 18:40:43 +0000 (21:40 +0300)
commit8b4c0009313f3d42e2540e3e1f776097dd0db73d
tree72c8ce2c20c51cb659cb4fb44b4ca9640313692c
parente32993eb3aed598790ba0c581796c357898bd8f0
rt2x00usb: Use usb anchor to manage URB

With current driver, it is observed that a URB is not
completed while the USB disconnect is initiated. Due to
that, the URB completion handler is trying to access
the resource which was freed as a part of USB disconnect.
Managing the URBs with anchor will make sure that all
the URBs are handled gracefully before device gets
disconnected.

Signed-off-by: Vishal Thanki <vishalthanki@gmail.com>
Acked-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ralink/rt2x00/rt2x00.h
drivers/net/wireless/ralink/rt2x00/rt2x00dev.c
drivers/net/wireless/ralink/rt2x00/rt2x00usb.c