[Cbe-oss-dev] [PATCH] spufs: fix return value of spufs_mfc_write

Masato Noguchi Masato.Noguchi at jp.sony.com
Fri Nov 17 18:30:40 EST 2006


This patch changes spufs_mfc_write() to return
correct size instead of 0.

Signed-off-by: Masato Noguchi <Masato.Noguchi at jp.sony.com>
---
 arch/powerpc/platforms/cell/spufs/file.c |    1 +
 1 files changed, 1 insertion(+)

Index: linux-2.6.19-rc6-arnd1/arch/powerpc/platforms/cell/spufs/file.c
===================================================================
--- linux-2.6.19-rc6-arnd1.orig/arch/powerpc/platforms/cell/spufs/file.c
+++ linux-2.6.19-rc6-arnd1/arch/powerpc/platforms/cell/spufs/file.c
@@ -1325,6 +1325,7 @@ static ssize_t spufs_mfc_write(struct fi
 		goto out;
 
 	ctx->tagwait |= 1 << cmd.tag;
+	ret = size;
 
 out:
 	return ret;




More information about the cbe-oss-dev mailing list