Searched hist:c0e7b4aa1c09ea992808ea8c079141bc8dd0f5bc (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/arch/powerpc/platforms/cell/spufs/ |
H A D | sched.c | diff c0e7b4aa1c09ea992808ea8c079141bc8dd0f5bc Tue Sep 18 23:38:12 CDT 2007 Christoph Hellwig <hch@lst.de> [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>
|