Skip to content
Commit d090bffa authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring/memmap: explicitly return -EFAULT for mmap on NULL rings



The later mapping will actually check this too, but in terms of code
clarify, explicitly check for whether or not the rings and sqes are
valid during validation. That makes it explicit that if they are
non-NULL, they are valid and can get mapped.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 81d8191e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment