Skip to content

Commit

Permalink
pipe: fix failure to return error code on ->confirm()
Browse files Browse the repository at this point in the history
The arguments were transposed, we want to assign the error code to
'ret', which is being returned.

Signed-off-by: Nicolas Kaiser <[email protected]>
Cc: [email protected]
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
nikai3d authored and Jens Axboe committed Oct 21, 2010
1 parent f6f94e2 commit e5953cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit e5953cb

Please sign in to comment.