Skip to content
  • Nikita Kiryanov's avatar
    ehci-hcd: fix memory leak in lowlevel init · 8bc36036
    Nikita Kiryanov authored
    
    
    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>
    8bc36036