Skip to content

Commit

Permalink
ps3vram: Fix error path (return -EIO) for short read/write
Browse files Browse the repository at this point in the history
Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Cc: Jim Paris <jim@jtan.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Geert Uytterhoeven authored and Benjamin Herrenschmidt committed Jun 15, 2009
1 parent 7a4a89c commit 734957c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/block/ps3vram.c
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,7 @@ static int ps3vram_make_request(struct request_queue *q, struct bio *bio)

if (retlen != len) {
dev_err(&dev->core, "Short %s\n", op);
error = -EIO;
goto out;
}

Expand Down

0 comments on commit 734957c

Please sign in to comment.