Skip to content
Snippets Groups Projects
Commit 8bc36036 authored by Nikita Kiryanov's avatar Nikita Kiryanov Committed by Marek Vasut
Browse files

ehci-hcd: fix memory leak in lowlevel init


usb_lowlevel_init() allocates a new periodic_list each time it is invoked,
without freeing the original list. Since it is initialized later on in the code,
just reuse the first-allocated list in future invocations of usb_lowlevel_init.

Cc: Marek Vasut <marex@denx.de>
Cc: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: default avatarNikita Kiryanov <nikita@compulab.co.il>
parent 0adc331b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment