1
0
Fork 0

ps3vram: Fix error path (return -EIO) for short read/write

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>
hifive-unleashed-5.1
Geert Uytterhoeven 2009-06-10 04:38:37 +00:00 committed by Benjamin Herrenschmidt
parent 7a4a89c389
commit 734957c897
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}