aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-08-05 12:58:23 -0600
committerJens Axboe <axboe@kernel.dk>2020-08-06 07:18:06 -0600
commitbd74048108c179cea0ff52979506164c80f29da7 (patch)
tree77a5f66403ffb122a177a83704b6022a6455d80f /tools/testing/selftests/bpf/prog_tests/autoload.c
parent2dd2111d0d383df104b144e0d1f6b5a00cb7cd88 (diff)
io_uring: set ctx sq/cq entry count earlier
If we hit an earlier error path in io_uring_create(), then we will have accounted memory, but not set ctx->{sq,cq}_entries yet. Then when the ring is torn down in error, we use those values to unaccount the memory. Ensure we set the ctx entries before we're able to hit a potential error path. Cc: stable@vger.kernel.org Reported-by: Tomáš Chaloupka <chalucha@gmail.com> Tested-by: Tomáš Chaloupka <chalucha@gmail.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions