diff options
author | Jens Axboe <[email protected]> | 2024-12-12 08:01:52 -0700 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2024-12-12 08:01:52 -0700 |
commit | 99d6af6e8a22b792e1845b186f943cd10bb4b7b0 (patch) | |
tree | c7af221e463e44672298b000de646274e9eba704 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | a07d2d7930c75e6bf88683b376d09ab1f3fed2aa (diff) |
io_uring/rsrc: don't put/free empty buffers
If cloning of buffers fail and we have to put the ones already grabbed,
check for NULL buffers and skip those. They used to be dummy ubufs, but
now they are just NULL and that should be checked before reaping them.
Reported-by: chase xd <[email protected]>
Link: https://lore.kernel.org/io-uring/CADZouDQ7TcKn8gz8_efnyAEp1JvU1ktRk8PWz-tO0FXUoh8VGQ@mail.gmail.com/
Fixes: d50f94d761a5 ("io_uring/rsrc: get rid of the empty node and dummy_ubuf")
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions