linux-aio: Fix typo in read() EINTR check

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
master
Stefan Hajnoczi 2010-04-14 12:13:36 +01:00 committed by Kevin Wolf
parent adfe078e4b
commit 2be5064953
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ static void qemu_laio_completion_cb(void *opaque)
do {
ret = read(s->efd, &val, sizeof(val));
} while (ret == 1 && errno == EINTR);
} while (ret == -1 && errno == EINTR);
if (ret == -1 && errno == EAGAIN)
break;