mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-06 03:45:24 -04:00
Revert "usb: xhci: Fix NULL pointer dereference on certain command aborts"
This reverts commit fd8bfaeba4 which is
commit 1e0a19912adb68a4b2b74fd77001c96cd83eb073 upstream.
It breaks the Android kernel abi and can be brought back in the future
in an abi-safe way if it is really needed.
Bug: 161946584
Change-Id: Ie9a889c78ce912df4d19e8a3da0d00b2283d6546
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
d6a7c6fab0
commit
4364e0f8cf
1 changed files with 1 additions and 2 deletions
|
|
@ -332,8 +332,7 @@ static void xhci_handle_stopped_cmd_ring(struct xhci_hcd *xhci,
|
|||
if ((xhci->cmd_ring->dequeue != xhci->cmd_ring->enqueue) &&
|
||||
!(xhci->xhc_state & XHCI_STATE_DYING)) {
|
||||
xhci->current_cmd = cur_cmd;
|
||||
if (cur_cmd)
|
||||
xhci_mod_cmd_timer(xhci);
|
||||
xhci_mod_cmd_timer(xhci);
|
||||
xhci_ring_cmd_db(xhci);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue