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

Commit cb0304a9 authored by Hemant Kumar's avatar Hemant Kumar Committed by Mayank Rana
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.

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