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

Commit f1b52f6e authored by Colin Cross's avatar Colin Cross Committed by Amit Pundir
Browse files

usb: gadget: adb: do not set error flag when dequeuing req



When an ep_out req is dequeued because of userspace freezing,
don't set the error flag.

Change-Id: I680f1a1059b8ac2244aaa069e7d42dc44abf98e9
Signed-off-by: default avatarColin Cross <ccross@android.com>
parent 74fe0807
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -205,7 +205,7 @@ static void adb_complete_out(struct usb_ep *ep, struct usb_request *req)
	struct adb_dev *dev = _adb_dev;

	dev->rx_done = 1;
	if (req->status != 0)
	if (req->status != 0 && req->status != -ECONNRESET)
		dev->error = 1;

	wake_up(&dev->read_wq);