From 734957c89794971c874f9d3ccd9eb49dc3325f65 Mon Sep 17 00:00:00 2001 From: Geert Uytterhoeven Date: Wed, 10 Jun 2009 04:38:37 +0000 Subject: [PATCH] ps3vram: Fix error path (return -EIO) for short read/write Signed-off-by: Geert Uytterhoeven Cc: Jim Paris Cc: Jens Axboe Signed-off-by: Benjamin Herrenschmidt --- drivers/block/ps3vram.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/block/ps3vram.c b/drivers/block/ps3vram.c index 8eddef373a91..2e79d2cfa023 100644 --- a/drivers/block/ps3vram.c +++ b/drivers/block/ps3vram.c @@ -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; } -- 2.39.5