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

Skip to content
Commit 02153a0f authored by Hemant Kumar's avatar Hemant Kumar
Browse files

usb: gadget: Do not disconnect unregistered dev



configfs_composite_unbind sets the gadget data
to null. Therefore, add check in android_disconnect
function to make sure that cdev is not NULL. This
prevents NULL pointer dereference upon accessing
cdev.

Change-Id: Ib59cdd88557d917c85d8d33968efc295bcef2280
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent bbd8499b
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