Message ID | 155021839320114@kroah.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | 54f64d5c983f939901dacc8cfc0983727c5c742e |
Headers | show |
Series | patch "usb: f_fs: Avoid crash due to out-of-scope stack ptr access" added to usb-testing | expand |
diff --git a/drivers/usb/gadget/function/f_fs.c b/drivers/usb/gadget/function/f_fs.c index 66a2c165b4b7..20413c276c61 100644 --- a/drivers/usb/gadget/function/f_fs.c +++ b/drivers/usb/gadget/function/f_fs.c @@ -1082,6 +1082,7 @@ static ssize_t ffs_epfile_io(struct file *file, struct ffs_io_data *io_data) * condition with req->complete callback. */ usb_ep_dequeue(ep->ep, req); + wait_for_completion(&done); interrupted = ep->status < 0; }