ps3vram: Fix error path (return -EIO) for short read/write
Geert Uytterhoeven [Wed, 10 Jun 2009 04:38:37 +0000 (04:38 +0000)]
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>

drivers/block/ps3vram.c

index 8eddef3..2e79d2c 100644 (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;
                }