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 <anton.kochkov@gmail.com>
Reviewed-on: http://review.coreboot.org/1105
Tested-by: build bot (Jenkins)
Reviewed-by: Nico Huber <nico.huber@secunet.com>
This commit is contained in:
Anton Kochkov 2012-06-20 03:57:18 +04:00 committed by Nico Huber
parent 39b47d2b03
commit 421303a25a
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ detach_controller (hci_t *controller)
it->next = controller->next; it->next = controller->next;
return; return;
} }
it = it->next;
} }
} }
} }