aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>2009-06-10 04:38:37 +0000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-06-15 13:26:17 +1000
commit734957c89794971c874f9d3ccd9eb49dc3325f65 (patch)
tree3beb7d7bb3b2f70fb44ecc1fc80b794f3b57f58a /drivers/block
parent7a4a89c38960591fa6555d287f793bd592c07ebd (diff)
downloadkernel_goldelico_gta04-734957c89794971c874f9d3ccd9eb49dc3325f65.zip
kernel_goldelico_gta04-734957c89794971c874f9d3ccd9eb49dc3325f65.tar.gz
kernel_goldelico_gta04-734957c89794971c874f9d3ccd9eb49dc3325f65.tar.bz2
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>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/ps3vram.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/ps3vram.c b/drivers/block/ps3vram.c
index 8eddef3..2e79d2c 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;
}