[POWERPC] spufs: Fix return value of spufs_mfc_write
authorMasato Noguchi <[email protected]>
Mon, 20 Nov 2006 17:45:07 +0000 (18:45 +0100)
committerPaul Mackerras <[email protected]>
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 <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Paul Mackerras <[email protected]>
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;