usb/gadget: fix gadgetfs aio support.
commit 327b21da884fe1a29f733e41792ddd53e4a30379 upstream. Fix io submissions failing with ENODEV. Signed-off-by: Mathieu Laurendeau <mat.lau@laposte.net> Fixes: 7fe3976e0f3a ("gadget: switch ep_io_operations to ->read_iter/->write_iter") Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e9caf24cdf
commit
8fd5243e5f
@ -541,7 +541,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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user