diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2014-07-19 00:25:49 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-19 03:30:46 +0400 |
commit | 8b3ab0edaf6acd281243bf974fac7e01c9574d08 (patch) | |
tree | f00e592e7f176b5dc5e2a088fb6f72618c1858e7 /drivers/misc/sgi-gru | |
parent | 95d9a01d727fdb6d2b667ac374341c48777cc41e (diff) | |
download | linux-8b3ab0edaf6acd281243bf974fac7e01c9574d08.tar.xz |
USB: OHCI: no shortcut for unlinking URBS from a dead controller
When an URB is unlinked from a dead controller, ohci-hcd gives back
the URB with no regard for cleaning up the internal data structures.
This won't play nicely with the upcoming changes to the TD done
list.
Therefore make ohci_urb_dequeue() call finish_unlinks(), which uses
td_done() to do a proper cleanup, rather than calling finish_urb()
directly. Also, remove the checks that urb_priv is non-NULL; the
driver guarantees that urb_priv will never be NULL for a valid URB.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/sgi-gru')
0 files changed, 0 insertions, 0 deletions