[Cbe-oss-dev] [PATCH] spufs: return EPERM on isolated load failure

Jeremy Kerr jk at ozlabs.org
Tue Jul 3 12:24:31 EST 2007


The 3c spec states that EPERM should be returned when an isolated load
fails. This change makes a failure return EPERM rather than EACCESS.

Signed-off-by: Jeremy Kerr <jk at ozlabs.org>
---
 arch/powerpc/platforms/cell/spufs/run.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/platforms/cell/spufs/run.c b/arch/powerpc/platforms/cell/spufs/run.c
index 58ae13b..86b43aa 100644
--- a/arch/powerpc/platforms/cell/spufs/run.c
+++ b/arch/powerpc/platforms/cell/spufs/run.c
@@ -103,7 +103,7 @@ static int spu_setup_isolated(struct spu_context *ctx)
 		 * signal later. */
 		pr_debug("%s: isolated LOAD failed\n", __FUNCTION__);
 		ctx->ops->runcntl_write(ctx, SPU_RUNCNTL_RUNNABLE);
-		ret = -EACCES;
+		ret = -EPERM;
 		goto out_drop_priv;
 	}
 
-- 
1.5.0.rc4.g85b1




More information about the cbe-oss-dev mailing list