Re: xhci driver causes Kernel-Oops starting with kernel 3.16

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/18/2014 06:59 PM, Manuel Reimer wrote:
> Hello,
> 
> I already opened a bug report for my problem here:
> 
> https://bugzilla.kernel.org/show_bug.cgi?id=82731#c1
> 
> Starting with Kernel 3.16 I get kernel Oops from time to time when booting my desktop system.
> 
> A reset helps to bring the system up without problems.
> 
> I've attached a dmesg dump to my bug report:
> https://bugzilla.kernel.org/attachment.cgi?id=147061
> 
> Thank you very much in advance for any help.
> 

This should fix the Oops
(Patch added to bugreport as well)
Does it work for you?


diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c
index 26129d3..59483c6 100644
--- a/drivers/usb/host/xhci-mem.c
+++ b/drivers/usb/host/xhci-mem.c
@@ -1819,7 +1819,7 @@ void xhci_mem_cleanup(struct xhci_hcd *xhci)
        xhci_cleanup_command_queue(xhci);
 
        num_ports = HCS_MAX_PORTS(xhci->hcs_params1);
-       for (i = 0; i < num_ports; i++) {
+       for (i = 0; i < num_ports && xhci->rh_bw; i++) {
                struct xhci_interval_bw_table *bwt = &xhci->rh_bw[i].bw_table;
                for (j = 0; j < XHCI_MAX_INTERVAL; j++) {
                        struct list_head *ep = &bwt->interval_bw[j].endpoints;

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




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux