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

Commit 4c7aed32 authored by Kyle Yan's avatar Kyle Yan Committed by Gerrit - the friendly Code Review server
Browse files

Merge "USB: gadget: f_mtp: Fix bug in receive_file work" into msm-4.8

parents 82940d54 e3fe674b
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -914,6 +914,9 @@ static void receive_file_work(struct work_struct *data)
				dev->rx_done || dev->state != STATE_BUSY);
			if (dev->state == STATE_CANCELED
					|| dev->state == STATE_OFFLINE) {
				if (dev->state == STATE_OFFLINE)
					r = -EIO;
				else
					r = -ECANCELED;
				if (!dev->rx_done)
					usb_ep_dequeue(dev->ep_out, read_req);