acrn-kernel/drivers/usb/gadget
Sandeep Dhavale e07fec475c 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: 1e23db450c ("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>
2023-04-05 19:24:01 +02:00
..
function usb: gadget: f_fs: Fix ffs_epfile_read_iter to handle ITER_UBUF 2023-04-05 19:24:01 +02:00
legacy usb: gadgetfs: Fix ep_read_iter to handle ITER_UBUF 2023-04-05 19:24:01 +02:00
udc USB / Thunderbolt driver changes for 6.3-rc1 2023-02-24 12:07:00 -08:00
Kconfig usb: uvc: move uvc_fmts and uvc_format_by_guid to own compile unit 2023-01-31 09:40:42 +01:00
Makefile
composite.c usb: gadget: Use correct endianness of the wLength field for WebUSB 2023-03-16 12:45:35 +01:00
config.c
configfs.c usb: gadget: configfs: Fix set but not used variable warning 2023-02-09 12:12:47 +01:00
configfs.h
epautoconf.c
functions.c
u_f.c
u_f.h
u_os_desc.h
usbstring.c