commit | 7608f54433a42ce9aa1841c4df9e2e3517d35a9b | [log] [tgz] |
---|---|---|
author | Tomasz Moń <tomasz.mon@nordicsemi.no> | Mon Jan 23 10:49:30 2023 +0100 |
committer | Carles Cufí <carles.cufi@nordicsemi.no> | Tue Jan 24 09:43:00 2023 +0100 |
tree | e3203e2e67e4f67384ce64c849eec04c97390299 | |
parent | 7b221fbe45a3e04d310f2d33afce79a716a2da54 [diff] |
usb: device_next: Do not leak memory on set address USB stack did leak memory on every SET ADDRESS request. UDC control allocator could cope with up to 13 leaked allocations. Therefore, issuing bus reset 13 times in a row (in addition to automatic reset after connecting the USB cable) was enough to exhaust memory and thus drive USB stack inoperable. Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>