From: Luke Browning Date: Mon, 12 May 2008 14:36:59 +0000 (+0000) Subject: [POWERPC] spufs: Fix pointer reference in find_victim X-Git-Tag: v2.6.26-rc3~24^2~6 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=08fcf1d61193d7b7779aa6d7388535e26e064a0b;p=linux-2.6-omap-h63xx.git [POWERPC] spufs: Fix pointer reference in find_victim If victim (not ctx) is in spu_run, add victim to rq. Signed-off-by: Luke Browning Acked-by: Christoph Hellwig Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/platforms/cell/spufs/sched.c b/arch/powerpc/platforms/cell/spufs/sched.c index 2e411f23462..745dd51ec37 100644 --- a/arch/powerpc/platforms/cell/spufs/sched.c +++ b/arch/powerpc/platforms/cell/spufs/sched.c @@ -659,7 +659,7 @@ static struct spu *find_victim(struct spu_context *ctx) victim->stats.invol_ctx_switch++; spu->stats.invol_ctx_switch++; - if (test_bit(SPU_SCHED_SPU_RUN, &ctx->sched_flags)) + if (test_bit(SPU_SCHED_SPU_RUN, &victim->sched_flags)) spu_add_to_rq(victim); mutex_unlock(&victim->state_mutex);