]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: move io_uring_rsrc_update2 validation
authorDylan Yudaken <dylany@fb.com>
Tue, 12 Apr 2022 16:30:39 +0000 (09:30 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2022 07:34:12 +0000 (09:34 +0200)
commit044371cbb7e9d6e6e67929db384bbb722489f235
tree282c19805ca3f4d7da8c8e126209328a8c7fefba
parentd2e8900d859f5ca69064c75ce1c5862b01c7ac83
io_uring: move io_uring_rsrc_update2 validation

[ Upstream commit d597e13798a6255156ba61c5d6801736213fee51 ]

Move validation to be more consistently straight after
copy_from_user. This is already done in io_register_rsrc_update and so
this removes that redundant check.

Signed-off-by: Dylan Yudaken <dylany@fb.com>
Link: https://lore.kernel.org/r/20220412163042.2788062-2-dylany@fb.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/io_uring.c