>From 97b1240543e976d1d3e9a32449bdad95ee006853 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Fri, 14 Jun 2013 12:59:44 +0200 Subject: [PATCH] usb: don't free usbdev xhci needs that. First because usbdevs ptrs must be unique, and also because it needs to walk up the chain to the root port and the usbdevs (of usb hubs) are part of it. --- src/usb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/usb.c b/src/usb.c index ecccd75..a9d3bea 100644 --- a/src/usb.c +++ b/src/usb.c @@ -378,7 +378,6 @@ usb_hub_port_setup(void *data) hub->devcount += count; done: hub->threads--; - free(usbdev); return; resetfail: -- 1.7.9.7