[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 2/6] test-aio: Fix event notifier cleanup
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PULL 2/6] test-aio: Fix event notifier cleanup |
Date: |
Wed, 25 Nov 2015 15:10:20 +0100 |
One test case closed an event notifier (event_notifier_cleanup())
without first disabling it (set_event_notifier(..., NULL)). This
resulted in a leftover handle 0 that was added to each subsequent
WaitForMultipleObjects() call, causing the function to fail (invalid
handle).
Signed-off-by: Kevin Wolf <address@hidden>
Reviewed-by: Paolo Bonzini <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
---
tests/test-aio.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/test-aio.c b/tests/test-aio.c
index 1623803..e188d8c 100644
--- a/tests/test-aio.c
+++ b/tests/test-aio.c
@@ -393,6 +393,7 @@ static void test_aio_external_client(void)
aio_enable_external(ctx);
}
assert(aio_poll(ctx, false));
+ set_event_notifier(ctx, &data.e, NULL);
event_notifier_cleanup(&data.e);
}
}
--
1.8.3.1
- [Qemu-devel] [PULL 0/6] Block patches for 2.5.0-rc2, Kevin Wolf, 2015/11/25
- [Qemu-devel] [PULL 5/6] block/qapi: Plug memory leak on query-block error path, Kevin Wolf, 2015/11/25
- [Qemu-devel] [PULL 2/6] test-aio: Fix event notifier cleanup,
Kevin Wolf <=
- [Qemu-devel] [PULL 3/6] nand: fix flash erase when oob is in memory, Kevin Wolf, 2015/11/25
- [Qemu-devel] [PULL 4/6] raw-posix.c: Make GetBSDPath() handle caching options, Kevin Wolf, 2015/11/25
- [Qemu-devel] [PULL 1/6] tests/Makefile: Add more dependencies for test-timed-average, Kevin Wolf, 2015/11/25
- [Qemu-devel] [PULL 6/6] qemu-iotests: Add -nographic when starting QEMU in 119 and 120, Kevin Wolf, 2015/11/25
- Re: [Qemu-devel] [PULL 0/6] Block patches for 2.5.0-rc2, Peter Maydell, 2015/11/25