Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e5953cbd authored by Nicolas Kaiser's avatar Nicolas Kaiser Committed by Jens Axboe
Browse files

pipe: fix failure to return error code on ->confirm()



The arguments were transposed, we want to assign the error code to
'ret', which is being returned.

Signed-off-by: default avatarNicolas Kaiser <nikai@nikai.net>
Cc: stable@kernel.org
Signed-off-by: default avatarJens Axboe <jaxboe@fusionio.com>
parent f6f94e2a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -382,7 +382,7 @@ pipe_read(struct kiocb *iocb, const struct iovec *_iov,
			error = ops->confirm(pipe, buf);
			error = ops->confirm(pipe, buf);
			if (error) {
			if (error) {
				if (!ret)
				if (!ret)
					error = ret;
					ret = error;
				break;
				break;
			}
			}