Merge "usb: f_qdss: Do not perform connect_work if qdss is closed"

This commit is contained in:
qctecmdr 2021-04-03 00:05:57 -07:00 • committed by Gerrit - the friendly Code Review server
commit 32148359d8

View file

@ -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;
}