mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
ANDROID: 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: Colin Cross <ccross@android.com>
This commit is contained in:
parent
a8dd454be9
commit
e44897c3b8
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user