aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci-ring.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/host/xhci-ring.c')
-rw-r--r--drivers/usb/host/xhci-ring.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c
index 1969c001b3f9..1e57eafa6910 100644
--- a/drivers/usb/host/xhci-ring.c
+++ b/drivers/usb/host/xhci-ring.c
@@ -1424,6 +1424,10 @@ static void handle_cmd_completion(struct xhci_hcd *xhci,
1424 */ 1424 */
1425 ctrl_ctx = xhci_get_input_control_ctx(xhci, 1425 ctrl_ctx = xhci_get_input_control_ctx(xhci,
1426 virt_dev->in_ctx); 1426 virt_dev->in_ctx);
1427 if (!ctrl_ctx) {
1428 xhci_warn(xhci, "Could not get input context, bad type.\n");
1429 break;
1430 }
1427 /* Input ctx add_flags are the endpoint index plus one */ 1431 /* Input ctx add_flags are the endpoint index plus one */
1428 ep_index = xhci_last_valid_endpoint(le32_to_cpu(ctrl_ctx->add_flags)) - 1; 1432 ep_index = xhci_last_valid_endpoint(le32_to_cpu(ctrl_ctx->add_flags)) - 1;
1429 /* A usb_set_interface() call directly after clearing a halted 1433 /* A usb_set_interface() call directly after clearing a halted
@@ -2799,7 +2803,7 @@ hw_died:
2799 return IRQ_HANDLED; 2803 return IRQ_HANDLED;
2800} 2804}
2801 2805
2802irqreturn_t xhci_msi_irq(int irq, struct usb_hcd *hcd) 2806irqreturn_t xhci_msi_irq(int irq, void *hcd)
2803{ 2807{
2804 return xhci_irq(hcd); 2808 return xhci_irq(hcd);
2805} 2809}