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>
This commit is contained in:
Geert Uytterhoeven 2009-06-10 04:38:37 +00:00 коммит произвёл Benjamin Herrenschmidt
Родитель 7a4a89c389
Коммит 734957c897
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

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