From: Masato Noguchi Date: Mon, 20 Nov 2006 17:45:07 +0000 (+0100) Subject: [POWERPC] spufs: Fix return value of spufs_mfc_write X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=3692dc66149dc17cd82ec785a06478322c0eddff;p=openwrt%2Fstaging%2Fblogic.git [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 Signed-off-by: Arnd Bergmann Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/platforms/cell/spufs/file.c b/arch/powerpc/platforms/cell/spufs/file.c index 1c1af71d19cb..e6667530332b 100644 --- a/arch/powerpc/platforms/cell/spufs/file.c +++ b/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; ctx->tagwait |= 1 << cmd.tag; + ret = size; out: return ret;