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

Skip to content
Commit 80532ba0 authored by Badhri Jagan Sridharan's avatar Badhri Jagan Sridharan Committed by Pratham Pratap
Browse files

ANDROID: usb: gadget: Do not disconnect unregistered dev



configfs_composite_unbind sets the gadget data
to null. Therefore, add check in disconnect
function to make sure that cdev is not NULL.
Prints a WARN message if the driver tries to
redundantly disconnect a gadget.

Change-Id: Iad25f7a1e785ed336d34259c147efdcfc0840fae
Signed-off-by: default avatarBadhri Jagan Sridharan <badhri@google.com>
Git-commit: da17b0d6e3031d54deb05c08c7bf1616da43f7a6
Git-Repo: https://android.googlesource.com/kernel/common/


Signed-off-by: default avatarPratham Pratap <prathampratap@codeaurora.org>
parent 041ae774
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