Christoph Hellwig c0e7b4aa1c [POWERPC] spusched: Fix null pointer dereference in find_victim
find_victim can dereference a NULL pointer when iterating over the list
of victim spus because list_mutex only guarantees spu->ct to be stable,
but of course not to be non-NULL.

Also fix find_victim to not call spu_unbind_context without list_mutex
because that violates the above guarantee.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2007-09-19 15:26:29 +10:00
..
2007-08-11 15:47:40 -07:00
2007-09-06 11:10:56 +09:00
2007-09-11 17:21:20 -07:00
2007-08-27 00:29:25 -04:00
2007-08-22 13:32:07 +09:00
2007-08-31 01:42:22 -07:00
2007-07-17 10:23:03 -07:00