Skip to content

Commit

Permalink
[PATCH] uml: return a real error code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeff Dike authored and Linus Torvalds committed Sep 17, 2005
1 parent 114069f commit 2867ace
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/um/os-Linux/aio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2867ace

Please sign in to comment.