Commit 21bad758 authored by Dima Zavin's avatar Dima Zavin
Browse files

usb: gadget: android: follow proper order on disconnect



We should composite_disconnect *before* updating our internal
state and sending uevent to userspace.
Also, hold cdev->lock while updating internal state.

Change-Id: If66a5a4f7d4a102a44aefc3ce4a154a5a1517dcf
Signed-off-by: default avatarDima Zavin <dima@android.com>
parent 7cfb88fe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment