summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-05-21 10:45:16 -0600
committerJens Axboe <axboe@kernel.dk>2019-05-21 10:47:32 -0600
commit829f6a9a93f99231cf1cda088816cce013ec393c (patch)
tree279ca85d251172bbe64c7189ab4f47a0014dd0e3 /examples
parentffe3e090cd41d0977ca74fafcb452838f76ceea1 (diff)
io_uring_submit: fix head/tail wrap issue
Use proper unsigned math to figure out how many entries we have. If we have head and tail on either side of UINT_MAX, then we currently don't submit anything as: while (head < tail) { is never true. Reported-by: Weiping Zhang <zhangweiping@didiglobal.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions