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

Commit 57f13be5 authored by Mayank Rana's avatar Mayank Rana Committed by Matt Wagantall
Browse files

dwc3: gadget: Add NULL check against endpoint's desc in set_halt()



In few instances, dwc3_gadget_ep_set_halt() API is called after USB
endpoint is disabled which results into device crash with NULL pointer
dereference. USB endpoint's descriptors are set to NULL as part of USB
endpoint disable functionality. Hence fix this issue by adding NULL
pointer check against endpoint's descriptor.

CRs-Fixed: 829034
Change-Id: I2e1f67571ed202fab21655bd8f13fc54706419a7
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent fce06143
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