summaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-gadget.c
diff options
context:
space:
mode:
authorKeith Busch <kbusch@kernel.org>2022-07-12 08:32:54 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-08-17 15:15:43 +0200
commit38fb0d7f39a1e5fcf539f09463028f4f76ff3d50 (patch)
treeef71e31ed1e754e765f9d38a47b5a4b51b37b457 /drivers/usb/cdns3/cdns3-gadget.c
parent70edccb32b60b8ff2b4ea5126c2ae17e642fed37 (diff)
block: ensure iov_iter advances for added pages
[ Upstream commit 325347d965e7ccf5424a05398807a6d801846612 ] There are cases where a bio may not accept additional pages, and the iov needs to advance to the last data length that was accepted. The zone append used to handle this correctly, but was inadvertently broken when the setup was made common with the normal r/w case. Fixes: 576ed9135489c ("block: use bio_add_page in bio_iov_iter_get_pages") Fixes: c58c0074c54c2 ("block/bio: remove duplicate append pages code") Signed-off-by: Keith Busch <kbusch@kernel.org> Link: https://lore.kernel.org/r/20220712153256.2202024-1-kbusch@fb.com Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-gadget.c')
0 files changed, 0 insertions, 0 deletions