mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
Merge "usb: f_qdss: Do not perform connect_work if qdss is closed"
This commit is contained in:
commit
32148359d8
1 changed files with 2 additions and 2 deletions
|
|
@ -591,8 +591,8 @@ static void usb_qdss_connect_work(struct work_struct *work)
|
|||
|
||||
qdss = container_of(work, struct f_qdss, connect_w);
|
||||
|
||||
/* If cable is already removed, discard connect_work */
|
||||
if (qdss->usb_connected == 0) {
|
||||
/* If qdss is closed or cable is removed, discard connect_work */
|
||||
if (qdss->qdss_close || qdss->usb_connected == 0) {
|
||||
cancel_work_sync(&qdss->disconnect_w);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue