[Cbe-oss-dev] [PATCH] spufs: check spu_acquire_runnable() return value

Akinobu Mita mita at fixstars.com
Tue Apr 10 21:33:11 EST 2007


This patch checks return value of spu_acquire_runnable() in
spufs_mfc_write().

Signed-off-by: Akinobu Mita <mita at fixstars.com>

Index: 2.6-git-ps3/arch/powerpc/platforms/cell/spufs/file.c
===================================================================
--- 2.6-git-ps3.orig/arch/powerpc/platforms/cell/spufs/file.c
+++ 2.6-git-ps3/arch/powerpc/platforms/cell/spufs/file.c
@@ -1443,7 +1443,10 @@ static ssize_t spufs_mfc_write(struct fi
 	if (ret)
 		goto out;
 
-	spu_acquire_runnable(ctx, 0);
+	ret = spu_acquire_runnable(ctx, 0);
+	if (ret)
+		goto out;
+
 	if (file->f_flags & O_NONBLOCK) {
 		ret = ctx->ops->send_mfc_command(ctx, &cmd);
 	} else {



More information about the cbe-oss-dev mailing list