do_aio used to return -1 on error instead of errno.
Signed-off-by: Jeff Dike <[email protected]>
Index: test/arch/um/os-Linux/aio.c
===================================================================
--- test.orig/arch/um/os-Linux/aio.c 2005-09-14 15:47:30.000000000 -0400
+++ test/arch/um/os-Linux/aio.c 2005-09-14 15:48:04.000000000 -0400
@@ -117,6 +117,7 @@
err = io_submit(ctx, 1, &iocbp);
if(err > 0)
err = 0;
+ else err = -errno;
out:
return err;