[PATCH 13/22] spufs: fix return value of spufs_mfc_write

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Masato Noguchi <[email protected]>
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]>
---
 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;

_______________________________________________
cbe-oss-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/cbe-oss-dev

--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux