diff options
author | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2010-04-14 12:13:36 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2010-04-23 16:21:57 +0200 |
commit | 2be5064953540d5451480375519389f104eb7909 (patch) | |
tree | 36a48f3261b35d1a132aefc4193e48b9a6dbc4f5 /linux-aio.c | |
parent | adfe078e4b658c5406be089980c5b9034bae42a4 (diff) |
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>
Diffstat (limited to 'linux-aio.c')
-rw-r--r-- | linux-aio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-aio.c b/linux-aio.c index 5e892b0785..68f4b3d757 100644 --- a/linux-aio.c +++ b/linux-aio.c @@ -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; |