• Jeremy Kerr's avatar
    powerpc/spufs: Fix multiple get_spu_context() · 9f43e391
    Jeremy Kerr authored
    Commit 8d5636fb introduced a reference
    count on SPU contexts during find_victim, but this may cause a leak in
    the reference count if we later find a better contender for a context to
    unschedule.
    
    Change the reference to after we've found our victim context, so we
    don't do the extra get_spu_context().
    Signed-off-by: default avatarJeremy Kerr <jk@ozlabs.org>
    9f43e391
sched.c 28.3 KB