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

Skip to content
Commit dd37bd3b authored by Mayank Rana's avatar Mayank Rana Committed by ChandanaKishori Chiluveru
Browse files

gadget: composite: Fix crash seen when SS descriptor is not available



In some cases, composite device may have multiple interfaces and one of
interface may not support USB super speed functionality. When host is
trying to enumerate this composite device into super speed mode by
sending SET_CONFIG(1), it results into crash due to ss descriptors are
not available for particular interface. Hence add check against ss
descriptors and fail SET_CONFIG(1). This results into some of host try
to re-enumerate USB composite device with only interface which support
super speed mode.

Change-Id: Ib909f3d451e247c0415863689711e66b15fa2fa5
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent 933b8831
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