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

Skip to content
Commit b6a2c31b authored by Danny Segal's avatar Danny Segal
Browse files

usb: gadget: audio: Resolve memory leaks in audio playback and capture



When the USB host initiates USB audio playback of capture, set_alt(1)
command is sent to the device. In response, the USB driver allocates a new
set of USB requests for handling the audio data. This is done every time
when a set_alt(1) command is sent by the USB host, and the requests never
get freed after then. The fix resolves this issue by ignoring set alt
commands if the interface is already set to this alt interface.

Change-Id: I4ac0acf2ac714bc132cfc0f99c2d04174e31b99b
CRs-fixed: 732934
Signed-off-by: default avatarDanny Segal <dsegal@codeaurora.org>
parent feb544b1
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