Commit e5953cbdff26f7cbae7eff30cd9b18c4e19b7594

Authored by Nicolas Kaiser
Committed by Jens Axboe
1 parent f6f94e2ab1

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: Nicolas Kaiser <nikai@nikai.net>
Cc: stable@kernel.org
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -382,7 +382,7 @@
382 382 error = ops->confirm(pipe, buf);
383 383 if (error) {
384 384 if (!ret)
385   - error = ret;
  385 + ret = error;
386 386 break;
387 387 }
388 388