From 983b770d547c11d8b0a4ef9e1ac75ffce1d4e46d Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 4 Aug 2009 12:49:36 +0200 Subject: [PATCH] solarisaio: fix aio errno assignment Signed-off-by: Jens Axboe --- engines/solarisaio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/solarisaio.c b/engines/solarisaio.c index 17b7e22c..069cda53 100644 --- a/engines/solarisaio.c +++ b/engines/solarisaio.c @@ -62,7 +62,7 @@ static void wait_for_event(struct timeval *tv) io_u->resid = io_u->xfer_buflen - io_u->resultp.aio_return; io_u->error = 0; } else - io_u->error = io_u->resultp.aio_return; + io_u->error = io_u->resultp.aio_errno; /* * For SIGIO, we need a write barrier between the two, so that -- 2.25.1