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

Commit 9a0c6a4b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: gadget: u_smd: Check if SMD channel exists before queueing pull"

parents 29b62de4 3d8cb4dd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -401,8 +401,8 @@ static void gsmd_tx_pull(struct work_struct *w)
	}

tx_pull_end:
	/* TBD: Check how code behaves on USB bus suspend */
	if (port->port_usb && smd_read_avail(port->pi->ch) && !list_empty(pool))
	if (port->port_usb && port->pi->ch && smd_read_avail(port->pi->ch) &&
							!list_empty(pool))
		queue_work(gsmd_wq, &port->pull);

	spin_unlock_irq(&port->port_lock);