Skip to content

Commit 04cc697

Browse files
committed
Merge branch 'for-2.6.37/misc' of git://git.kernel.dk/linux-2.6-block
* 'for-2.6.37/misc' of git://git.kernel.dk/linux-2.6-block: pipe: fix failure to return error code on ->confirm()
2 parents a288709 + e5953cb commit 04cc697

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/pipe.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ pipe_read(struct kiocb *iocb, const struct iovec *_iov,
382382
error = ops->confirm(pipe, buf);
383383
if (error) {
384384
if (!ret)
385-
error = ret;
385+
ret = error;
386386
break;
387387
}
388388

0 commit comments

Comments
 (0)