Skip to content
Snippets Groups Projects
Commit 256920eb authored by Daniel P. Berrangé's avatar Daniel P. Berrangé
Browse files

io: set correct error object in background reader test thread


The reader thread was accidentally setting the error pointer
intended for the writer thread. If both threads set errors
this would result in QEMU abort'ing due to the error already
being set.

Reviewed-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: default avatarDaniel P. Berrange <berrange@redhat.com>
parent a9d5aed1
No related branches found
No related tags found
No related merge requests found
......@@ -132,7 +132,7 @@ static gpointer test_io_thread_reader(gpointer opaque)
if (ret == QIO_CHANNEL_ERR_BLOCK) {
if (data->blocking) {
error_setg(&data->writeerr,
error_setg(&data->readerr,
"Unexpected I/O blocking");
break;
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment