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

Skip to content
Commit 75adfefc authored by Liangliang Lu's avatar Liangliang Lu Committed by Gerrit - the friendly Code Review server
Browse files

usb: gadget: Fix NULL pointer access if NCM not instantiated



ncm_ctrlrequest() will be called in android_setup(), in the case
NCM instance is not created, structure _ncm_setup_desc is not
created, it will run into a NULL pointer exception.

Fix this by checking _ncm_setup_desc is NULL or not.

Change-Id: If8048a03a7ab46138739472327a17c65ce158382
Signed-off-by: default avatarLiangliang Lu <luliang@codeaurora.org>
parent fa6cfb4c
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