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

Commit 327b21da authored by Mathieu Laurendeau's avatar Mathieu Laurendeau Committed by Felipe Balbi
Browse files

usb/gadget: fix gadgetfs aio support.



Fix io submissions failing with ENODEV.

Signed-off-by: default avatarMathieu Laurendeau <mat.lau@laposte.net>
Fixes: 7fe3976e ("gadget: switch ep_io_operations to ->read_iter/->write_iter")
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 3887db5c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -542,7 +542,7 @@ static ssize_t ep_aio(struct kiocb *iocb,
	 */
	spin_lock_irq(&epdata->dev->lock);
	value = -ENODEV;
	if (unlikely(epdata->ep))
	if (unlikely(epdata->ep == NULL))
		goto fail;

	req = usb_ep_alloc_request(epdata->ep, GFP_ATOMIC);