Make sure to initialize xhci->rings_list, otherwise any use of the
driver will result in a crash.

Signed-off-by: Andrey Smirnov <andrew.smir...@gmail.com>
---
 drivers/usb/host/xhci-hcd.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/usb/host/xhci-hcd.c b/drivers/usb/host/xhci-hcd.c
index a01f9fe38..cdce0d5ec 100644
--- a/drivers/usb/host/xhci-hcd.c
+++ b/drivers/usb/host/xhci-hcd.c
@@ -1470,6 +1470,7 @@ int xhci_register(struct device_d *dev, struct xhci_data 
*data)
        xhci = xzalloc(sizeof(*xhci));
        host = &xhci->host;
        INIT_LIST_HEAD(&xhci->vdev_list);
+       INIT_LIST_HEAD(&xhci->rings_list);
        xhci->dev = dev;
        xhci->cap_regs = data->regs;
        xhci->op_regs = (void __iomem *)xhci->cap_regs +
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to