Jeremy Kerr 8d5636fbca powerpc/spufs: reference context while dropping state mutex in scheduler
Based on an original patch from Christoph Hellwig <hch@lst.de>.

Currently, there is a possible reference-after-free in the spusched
code - contexts may be freed after we have released their state_mutex
in spusched_tick and find_victim.

This change takes a reference to the context before releasing the
mutex, so that the context doesn't get destroyed.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2008-08-14 14:59:12 +10:00
..
2008-07-27 13:57:36 +02:00
2008-08-01 13:03:49 -07:00
2008-07-26 12:00:11 -07:00
2008-07-26 12:00:11 -07:00
2008-07-26 12:00:11 -07:00
2008-07-30 21:54:43 +01:00
2008-07-30 09:41:45 -07:00
2008-07-26 12:00:10 -07:00
2008-07-26 12:00:09 -07:00