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

Commit 32148359 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents fb04cf59 74656935
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
	}