Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Pavel Begunkov and committed by
Jens Axboe
be6bad57 9cebcf7b

-2
-2
io_uring/rsrc.c
··· 1058 1058 size_t offset; 1059 1059 int ret; 1060 1060 1061 - if (WARN_ON_ONCE(!imu)) 1062 - return -EFAULT; 1063 1061 ret = validate_fixed_range(buf_addr, len, imu); 1064 1062 if (unlikely(ret)) 1065 1063 return ret;