aio-win32: fix uninitialized use of have_select_revents
PATCH 1/1 aio-win32: fix uninitialized use of have_select_revents
Always initialize it with the return value of aio_prepare.
Reported-by TeLeMan <[email protected]>
Signed-off-by Paolo Bonzini <[email protected]>
--- aio-win32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
aio-win32.c +2 -2
@@ -283,9 +283,9 @@ bool aio_poll(AioContext *ctx, bool blocking)int count;int timeout; -if (aio_prepare (ctx)) { + have_select_revents =aio_prepare (ctx); +if (have_select_revents) { blocking = false; - have_select_revents = true; } was_dispatching = ctx->dispatching;
Signature · 1 line
2.1.0
Quoted 7 lines · Paolo Bonzini
Always initialize it with the return value of
aio_prepare.Reported-by TeLeMan <[email protected]>Signed-off-by Paolo Bonzini <[email protected]>--- aio-win32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by Stefan Hajnoczi <[email protected]>
Quoted 27 lines · Paolo Bonzini
Always initialize it with the return value of
aio_prepare.Reported-by TeLeMan <[email protected]>Signed-off-by Paolo Bonzini <[email protected]>--- aio-win32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)aio-win32.c +2
-2@@ -283,9 +283,9 @@ bool aio_poll(AioContext *ctx, bool blocking)int count;int timeout; -if (aio_prepare (ctx)) { + have_select_revents =aio_prepare (ctx); +if (have_select_revents) { blocking = false; - have_select_revents = true; } was_dispatching = ctx->dispatching;Signature · 1 line
2.1.0
Reviewed-by Fam Zheng <[email protected]>
Stefan Hajnoczi
AppliedQuoted 7 lines · Paolo Bonzini
Always initialize it with the return value of
aio_prepare.Reported-by TeLeMan <[email protected]>Signed-off-by Paolo Bonzini <[email protected]>--- aio-win32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block
Stefan