From 421303a25aef04bb3d5431a4e6f4f6215bc772fe Mon Sep 17 00:00:00 2001 From: Anton Kochkov Date: Wed, 20 Jun 2012 03:57:18 +0400 Subject: libpayload: Fix detach_contoller in the USB driver Fixed usb controllers linked list walking in detach_controller() function Change-Id: Ia97c7ec814f75d2b1bfe185f160fb4cd32aa6fdb Signed-off-by: Anton Kochkov Reviewed-on: http://review.coreboot.org/1105 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber --- payloads/libpayload/drivers/usb/usb.c | 1 + 1 file changed, 1 insertion(+) (limited to 'payloads/libpayload/drivers/usb') diff --git a/payloads/libpayload/drivers/usb/usb.c b/payloads/libpayload/drivers/usb/usb.c index 07735a2097..42c73f345e 100644 --- a/payloads/libpayload/drivers/usb/usb.c +++ b/payloads/libpayload/drivers/usb/usb.c @@ -63,6 +63,7 @@ detach_controller (hci_t *controller) it->next = controller->next; return; } + it = it->next; } } } -- cgit v1.2.3