Matthew Garrett wrote:
> +++ b/drivers/usb/host/pci-quirks.c
..
> @@ -830,9 +830,17 @@ static void __devinit quirk_usb_handoff_xhci(struct 
> pci_dev *pdev)
>        */
>       ext_cap_offset = xhci_find_next_cap_offset(base, 
> XHCI_HCC_PARAMS_OFFSET);
>       do {
> +             if ((ext_cap_offset + sizeof(val)) > len) {
> +                     /* We're reading garbage from the controller */
> +                     dev_warn(&pdev->dev,
> +                              "xHCI controller failing to respond");
> +                     return;
> +             }

Would it be useful to output the have and want values?


//Peter
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to