fix use of uninitialized dummy_fut in aio_suspend
authorAlexey Izbyshev <izbyshev@ispras.ru>
Fri, 7 Oct 2022 12:23:57 +0000 (15:23 +0300)
committerRich Felker <dalias@aerifal.cx>
Wed, 19 Oct 2022 18:01:32 +0000 (14:01 -0400)
commit26c76a908b8613ea8a77d40f3bd51b02f984501c
tree14c3b07590672b8554ca50f246fe7b55a0283829
parentaebd6a36449e91c06763a40121d558b6cea90d50
fix use of uninitialized dummy_fut in aio_suspend

aio_suspend waits on a dummy futex in the corner case when the array of
requests contains NULL pointers only. But the value of this futex was
left uninitialized, so if it happens to be non-zero, aio_suspend
degrades to spinning instead of blocking.
src/aio/aio_suspend.c