Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 3741fb2c authored by Jack Pham's avatar Jack Pham
Browse files

coresight: byte-cntr: Free USB requests when disconnected



When receiving USB_QDSS_CONNECT notification, 255 USB requests
are allocated before starting the worker thread to begin writing
to USB QDSS function driver. Conversely when USB_QDSS_DISCONNECT
is received, these requests need to be freed. Without doing so,
besides causing a slow memory leak, the existing requests would get
incorrectly re-used and may fail if the USB endpoint changed due
to a composition switch.

Change-Id: I328e110719fab374827ac69c8b60274f65ec81e2
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 5168327a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment