Message ID | 200812101903.mBAJ3chG022791@d24av02.br.ibm.com |
---|---|
State | Superseded |
Headers | show |
diff --git a/arch/powerpc/platforms/cell/spufs/context.c b/arch/powerpc/platforms/cell/spufs/context.c index 3bda369..0e37eff 100644 --- a/arch/powerpc/platforms/cell/spufs/context.c +++ b/arch/powerpc/platforms/cell/spufs/context.c @@ -51,6 +51,7 @@ static void dec_active_gangs(struct spu_gang *gang) struct spu_context *alloc_spu_context(struct spu_gang *gang) { struct spu_context *ctx; + int has_gang; ctx = kzalloc(sizeof *ctx, GFP_KERNEL); if (!ctx) @@ -62,9 +63,12 @@ struct spu_context *alloc_spu_context(struct spu_gang *gang) * the gang is a gang of one. */ if (!gang) { + has_gang = 0; gang = alloc_spu_gang(); if (!gang) goto out_free; + } else { + has_gang = 1; }