summaryrefslogtreecommitdiff
path: root/lib/decompress_unzstd.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2022-07-09 07:02:10 -0600
committerJens Axboe <axboe@kernel.dk>2022-07-09 07:02:10 -0600
commitd785a773bed966a75ca1f11d108ae1897189975b (patch)
tree21d14a028c00edba012092a465d5964fb25ff37b /lib/decompress_unzstd.c
parentbdb2c48e4b38e6dbe82533b437468999ba3ae498 (diff)
io_uring: check that we have a file table when allocating update slotsio_uring-5.19-2022-07-09
If IORING_FILE_INDEX_ALLOC is set asking for an allocated slot, the helper doesn't check if we actually have a file table or not. The non alloc path does do that correctly, and returns -ENXIO if we haven't set one up. Do the same for the allocated path, avoiding a NULL pointer dereference when trying to find a free bit. Fixes: a7c41b4687f5 ("io_uring: let IORING_OP_FILES_UPDATE support choosing fixed file slots") Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib/decompress_unzstd.c')
0 files changed, 0 insertions, 0 deletions