From 6bf65a1b3668b04bb6c8126494d00303104eb9e5 Mon Sep 17 00:00:00 2001 From: Pavel Begunkov Date: Mon, 20 Feb 2023 14:13:52 +0000 Subject: io_uring/rsrc: fix a comment in io_import_fixed() io_import_fixed() supports offsets, but "may not" means the opposite. Replace it with "might not" so the comments rather speaks about possible cases. Signed-off-by: Pavel Begunkov Reviewed-by: Gabriel Krisman Bertazi Link: https://lore.kernel.org/r/5b5f79958456caa6dc532f6205f75f224b232c81.1676902343.git.asml.silence@gmail.com Signed-off-by: Jens Axboe --- io_uring/rsrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io_uring') diff --git a/io_uring/rsrc.c b/io_uring/rsrc.c index a59fc02de598..4e6191904c9e 100644 --- a/io_uring/rsrc.c +++ b/io_uring/rsrc.c @@ -1335,7 +1335,7 @@ int io_import_fixed(int ddir, struct iov_iter *iter, return -EFAULT; /* - * May not be a start of buffer, set size appropriately + * Might not be a start of buffer, set size appropriately * and advance us to the beginning. */ offset = buf_addr - imu->ubuf; -- cgit v1.2.3