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

login
register
mail settings
Submitter Geert Uytterhoeven
Date April 3, 2009, 1:05 p.m.
Message ID <1238763938-7076-1-git-send-email-Geert.Uytterhoeven@sonycom.com>
Download mbox | patch
Permalink /patch/25574/
State Accepted, archived
Commit 734957c89794971c874f9d3ccd9eb49dc3325f65
Delegated to: Benjamin Herrenschmidt
Headers show

Comments

Geert Uytterhoeven - April 3, 2009, 1:05 p.m.
Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
---
 drivers/block/ps3vram.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

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