]> asedeno.scripts.mit.edu Git - linux.git/commit
io_uring: remove superfluous check for sqe->off in io_accept()
authorHrvoje Zeba <zeba.hrvoje@gmail.com>
Mon, 25 Nov 2019 19:40:22 +0000 (14:40 -0500)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 Nov 2019 02:56:11 +0000 (19:56 -0700)
commit8042d6ce8c40df0abb0d91662a754d074a3d3f16
treef1d99db1327f6bc4d4654788727769ee28ec6ab7
parent181e448d8709e517c9c7b523fcd209f24eb38ca7
io_uring: remove superfluous check for sqe->off in io_accept()

This field contains a pointer to addrlen and checking to see if it's set
returns -EINVAL if the caller sets addr & addrlen pointers.

Fixes: 17f2fe35d080 ("io_uring: add support for IORING_OP_ACCEPT")
Signed-off-by: Hrvoje Zeba <zeba.hrvoje@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c