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

Commit 56f8e0ca 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: f_mtp: Fix bug in receive_file work"

parents d280915a 07a4248f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -899,6 +899,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);