summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2025-04-19 18:47:06 +0100
committerJens Axboe <axboe@kernel.dk>2025-04-21 05:10:04 -0600
commitbe6bad57b217491733754ae8113eec94a90a2769 (patch)
tree39309b53ce07843bac3138b4839336597af25d78
parent9cebcf7b0c38bca1b501d8716163aa254b230559 (diff)
io_uring/rsrc: remove null check on import
WARN_ON_ONCE() checking imu for NULL in io_import_fixed() is in the hot path and too protective, it's time to get rid of it. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/3782c01e311dbd474bca45aefaf79a2f2822fafb.1745083025.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--io_uring/rsrc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/io_uring/rsrc.c b/io_uring/rsrc.c
index 5d25f3391650..b4c5f3ee8855 100644
--- a/io_uring/rsrc.c
+++ b/io_uring/rsrc.c
@@ -1058,8 +1058,6 @@ static int io_import_fixed(int ddir, struct iov_iter *iter,
size_t offset;
int ret;
- if (WARN_ON_ONCE(!imu))
- return -EFAULT;
ret = validate_fixed_range(buf_addr, len, imu);
if (unlikely(ret))
return ret;