]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
io_uring/memmap: return bool from io_mem_alloc_compound()
authorCaleb Sander Mateos <csander@purestorage.com>
Wed, 15 Oct 2025 17:25:54 +0000 (11:25 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 4 Nov 2025 16:32:09 +0000 (09:32 -0700)
commit4b25b75c30d90a2ad45eb6c79d4c71fdbb06bb4e
tree919a2aa690726da4e2e1a7471a6f9f63157bc997
parentffce324364318220acf83e576eac06549cbf9911
io_uring/memmap: return bool from io_mem_alloc_compound()

io_mem_alloc_compound() returns either ERR_PTR(-ENOMEM) or a virtual
address for the allocated memory, but its caller just checks whether the
result is an error. Return a bool success value instead.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/memmap.c