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

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

Merge "usb: u_data_bridge: Return error when no USB TX request available"

parents 444ec901 24e14ab1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -451,8 +451,8 @@ ssize_t gbridge_port_write(struct file *file,

	if (list_empty(&port->write_pool)) {
		spin_unlock_irqrestore(&port->port_lock, flags);
		pr_err("%s: Request list is empty.\n", __func__);
		return 0;
		pr_debug("%s: Request list is empty.\n", __func__);
		return -EAGAIN;
	}
	pool = &port->write_pool;
	req = list_first_entry(pool, struct usb_request, list);