[GIT PULL] Single misc fix for 2.6.37-rc1
From: Jens Axboe
Date: Fri Oct 22 2010 - 06:47:15 EST
Hi Linus,
A recently discovered problem in fs/pipe.c can cause us to
lose the error returned from buf-ops->confirm().
Please pull.
git://git.kernel.dk/linux-2.6-block.git for-2.6.37/misc
Nicolas Kaiser (1):
pipe: fix failure to return error code on ->confirm()
fs/pipe.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/pipe.c b/fs/pipe.c
index 279eef9..37eb1eb 100644
--- a/fs/pipe.c
+++ b/fs/pipe.c
@@ -382,7 +382,7 @@ pipe_read(struct kiocb *iocb, const struct iovec *_iov,
error = ops->confirm(pipe, buf);
if (error) {
if (!ret)
- error = ret;
+ ret = error;
break;
}
--
Jens Axboe
--
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/