aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r--arch/powerpc/platforms/cell/spufs/context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/context.c b/arch/powerpc/platforms/cell/spufs/context.c
index c5cd55ac848d..336f238102fd 100644
--- a/arch/powerpc/platforms/cell/spufs/context.c
+++ b/arch/powerpc/platforms/cell/spufs/context.c
@@ -132,10 +132,10 @@ int spu_acquire_runnable(struct spu_context *ctx)
132 132
133 if (ctx->state == SPU_STATE_SAVED) { 133 if (ctx->state == SPU_STATE_SAVED) {
134 ret = spu_activate(ctx, 0); 134 ret = spu_activate(ctx, 0);
135 if (ret)
136 goto out;
135 ctx->state = SPU_STATE_RUNNABLE; 137 ctx->state = SPU_STATE_RUNNABLE;
136 } 138 }
137 if (ret)
138 goto out;
139 139
140 downgrade_write(&ctx->state_sema); 140 downgrade_write(&ctx->state_sema);
141 /* On success, we return holding the lock */ 141 /* On success, we return holding the lock */