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

Commit 49b2e4a1 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "f_fs: fix scheduling while atomic issue of ffs_epfile_io()"

parents 55b65a4d 8d61117a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1185,11 +1185,13 @@ static ssize_t ffs_epfile_io(struct file *file, struct ffs_io_data *io_data)
			interrupted = true;
			if (ep->ep) {
				usb_ep_dequeue(ep->ep, req);
				spin_unlock_irq(&epfile->ffs->eps_lock);
				wait_for_completion(&done);
				interrupted = ep->status < 0;
			}
			} else {
				spin_unlock_irq(&epfile->ffs->eps_lock);
			}
		}

		ffs_log("%s:ep status %d for req %pK", epfile->name, ep->status,
				req);