Browse Source

[POWERPC] spufs: Fix return value of spufs_mfc_write

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>
Masato Noguchi 18 years ago
parent
commit
3692dc6614
1 changed files with 1 additions and 0 deletions
  1. 1 0
      arch/powerpc/platforms/cell/spufs/file.c

+ 1 - 0
arch/powerpc/platforms/cell/spufs/file.c

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