mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
Merge "f_fs: fix scheduling while atomic issue of ffs_epfile_io()"
This commit is contained in:
commit
49b2e4a13c
1 changed files with 3 additions and 1 deletions
|
|
@ -1185,10 +1185,12 @@ 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);
|
||||
}
|
||||
spin_unlock_irq(&epfile->ffs->eps_lock);
|
||||
}
|
||||
|
||||
ffs_log("%s:ep status %d for req %pK", epfile->name, ep->status,
|
||||
|
|
|
|||
Loading…
Reference in a new issue