mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-30 16:40:44 +09:00
usb: ci_udc: fix probe error cleanup
If allocation of the ep0 req fails, clean up all the allocations that were made in ci_udc_probe(). Signed-off-by: Stephen Warren <swarren@nvidia.com>
This commit is contained in:
parent
bdf81611e4
commit
9a7d34be13
@ -826,6 +826,7 @@ static int ci_udc_probe(void)
|
||||
|
||||
ci_ep_alloc_request(&controller.ep[0].ep, 0);
|
||||
if (!controller.ep0_req) {
|
||||
free(controller.items_mem);
|
||||
free(controller.epts);
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user