From patchwork Wed Apr 14 11:13:36 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: linux-aio: Fix typo in read() EINTR check Date: Wed, 14 Apr 2010 01:13:36 -0000 From: Stefan Hajnoczi X-Patchwork-Id: 50147 Message-Id: <1271243616-8569-1-git-send-email-stefanha@linux.vnet.ibm.com> To: qemu-devel@nongnu.org Cc: hch@lst.de, Stefan Hajnoczi Signed-off-by: Stefan Hajnoczi --- linux-aio.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux-aio.c b/linux-aio.c index 5e892b0..68f4b3d 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;