diff options
-rw-r--r-- | block/gluster.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/gluster.c b/block/gluster.c index 51e154c247..b0e2cc2a98 100644 --- a/block/gluster.c +++ b/block/gluster.c @@ -247,7 +247,7 @@ static void gluster_finish_aiocb(struct glfs_fd *fd, ssize_t ret, void *arg) if (!ret || ret == acb->size) { acb->ret = 0; /* Success */ } else if (ret < 0) { - acb->ret = ret; /* Read/Write failed */ + acb->ret = -errno; /* Read/Write failed */ } else { acb->ret = -EIO; /* Partial read/write - fail it */ } |