[PATCH v6] usb: ohci: Proper handling of ed_rm_list to handle race condition between usb_kill_urb() and finish_unlinks()

2018-02-07 Thread Jeffy Chen
list if necessary. This properly handle the updated ohci->ed_rm_list in usb_kill_urb(). Fixes:977dcfdc6031("USB:OHCI:don't lose track of EDs when a controller dies") Acked-by: Alan Stern CC: Signed-off-by: Aman Deep Signed-off-by: Jeffy Chen --- Changes in v6: This is a resen

[PATCH v2] xhci: Cleanup current_cmd in xhci_cleanup_command_queue()

2017-09-29 Thread Jeffy Chen
current_cmd in xhci_cleanup_command_queue() to avoid that. Fixes: d9f11ba9f107 ("xhci: Rework how we handle unresponsive or hoptlug removed hosts") Signed-off-by: Jeffy Chen --- Changes in v2: We cannot cancel cmd_timer in xhci_hc_died(), which would cause might_sleep warning. drivers/usb

[PATCH] xhci: Cancel cmd_timer before cleanup the command queue in xhci_hc_died()

2017-09-29 Thread Jeffy Chen
andle unresponsive or hoptlug removed hosts") Signed-off-by: Jeffy Chen --- drivers/usb/host/xhci-ring.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index a9443651ce0f..69ac3deffb7b 100644 --- a/drivers/usb/host/xhci-ri