commit | a8e5f9583ae7383bcd9edfed319c9480221514ad | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Tue Mar 26 16:38:19 2024 -0600 |
committer | Jens Axboe <axboe@kernel.dk> | Tue Mar 26 16:38:19 2024 -0600 |
tree | 1d085e04601278bef27a75a47c59118785367134 | |
parent | d139187eb1c4e8bd01725498b2e1272e7134d6c9 [diff] |
test/file-register: ensure the fail case allocates enough For the fail case, we only allocate 10 descriptors, yet still try and use 100 in the array. Allocate enough and ensure that we clear them to -2 as well, as the default clear of -1 means "sparse placeholder" for the file registration code. Reported-by: Manu Bretelle <chantra@meta.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>