summaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3
diff options
context:
space:
mode:
authorSandeep Dhavale <dhavale@google.com>2023-04-01 09:05:09 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-04-05 20:24:01 +0300
commite07fec475cc86ce6ded82908df1d511edc3303b7 (patch)
treee33e65c4e46f90e7d0c02277992eceab98a84415 /drivers/usb/cdns3
parentd356b3cdd00cae4508be566a47c0cfb74e14862a (diff)
downloadlinux-e07fec475cc86ce6ded82908df1d511edc3303b7.tar.xz
usb: gadgetfs: Fix ep_read_iter to handle ITER_UBUF
iov_iter for ep_read_iter can be ITER_UBUF with io_uring. In that case dup_iter() does not have to allocate iov and it can return NULL. Fix the assumption by checking for iter_is_ubuf() other wise ep_read_iter can treat this as failure and return -ENOMEM. Fixes: 1e23db450cff ("io_uring: use iter_ubuf for single range imports") Signed-off-by: Sandeep Dhavale <dhavale@google.com> Acked-by: Jens Axboe <axboe@kernel.dk> Link: https://lore.kernel.org/r/20230401060509.3608259-3-dhavale@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/cdns3')
0 files changed, 0 insertions, 0 deletions