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

Commit 15b61160 authored by Mayank Rana's avatar Mayank Rana
Browse files

f_gsi: Fix NULL pointer dereference when USB endpoint is not available



DPL USB GSI interface is not having out and interrupt (notify) endpoint.
Enabling DBG message with gsi_bind() results into NULL pointer
dereference while trying to access out endpoint or notify endpoint
related endpoint name. Fix this issue by checking out and interrupt
endpoint against NULL before accessing it.

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