commit | 2f13e4430200703908ae79e229b20fdbad223dca | [log] [tgz] |
---|---|---|
author | Nikita Kiryanov <nikita@compulab.co.il> | Mon Jul 29 13:27:40 2013 +0300 |
committer | Marek Vasut <marex@denx.de> | Mon Jul 29 23:01:33 2013 +0200 |
tree | a8817e9929b6d29ab2b0f2d5eabf8b10198b5336 | |
parent | 749c6d82a49db5b28c80129695cb1456e4b891df [diff] |
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: Nikita Kiryanov <nikita@compulab.co.il>