[PATCH 9/10] UML - return a real error code

From: Jeff Dike
Date: Wed Sep 14 2005 - 17:27:40 EST


do_aio used to return -1 on error instead of errno.

Signed-off-by: Jeff Dike <jdike@xxxxxxxxxxx>

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;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/