mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 21:15:53 +02:00
usb/gadget: fix gadgetfs aio support.
commit327b21da88upstream. Fix io submissions failing with ENODEV. Signed-off-by: Mathieu Laurendeau <mat.lau@laposte.net> Fixes:7fe3976e0f("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…
Reference in New Issue
Block a user