projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
114069f
)
[PATCH] uml: return a real error code
author
Jeff Dike
<jdike@addtoit.com>
Sat, 17 Sep 2005 02:27:51 +0000
(19:27 -0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Sat, 17 Sep 2005 18:50:00 +0000
(11:50 -0700)
do_aio used to return -1 on error instead of errno.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/um/os-Linux/aio.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/um/os-Linux/aio.c
b/arch/um/os-Linux/aio.c
index e942beb4e1085d4265028673c43fbe4c8ffcd277..298d5632128b8119d06f90c1639a559b0168d20e 100644
(file)
--- a/
arch/um/os-Linux/aio.c
+++ b/
arch/um/os-Linux/aio.c
@@
-117,6
+117,8
@@
static int do_aio(aio_context_t ctx, struct aio_context *aio)
err = io_submit(ctx, 1, &iocbp);
if(err > 0)
err = 0;
+ else
+ err = -errno;
out:
return err;