[POWERPC] spufs: Fix return value of spufs_mfc_write
authorMasato Noguchi <Masato.Noguchi@jp.sony.com>
Mon, 20 Nov 2006 17:45:07 +0000 (18:45 +0100)
committerPaul Mackerras <paulus@samba.org>
Mon, 4 Dec 2006 09:40:01 +0000 (20:40 +1100)
This patch changes spufs_mfc_write() to return
correct size instead of 0.

Signed-off-by: Masato Noguchi <Masato.Noguchi@jp.sony.com>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/spufs/file.c

index 1c1af71d19cb2ffa489f7aeeb9dbad35f621d6bb..e6667530332b3961dbc89a6dc6bffbb4545e55f7 100644 (file)
@@ -1279,6 +1279,7 @@ static ssize_t spufs_mfc_write(struct file *file, const char __user *buffer,
                goto out;
 
        ctx->tagwait |= 1 << cmd.tag;
+       ret = size;
 
 out:
        return ret;