diff options
author | Christoph Hellwig <hch@lst.de> | 2007-09-19 14:38:12 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-09-19 15:26:29 +1000 |
commit | c0e7b4aa1c09ea992808ea8c079141bc8dd0f5bc (patch) | |
tree | 04526571476d3f4e5f28f2043c025b72275c6b4a /block | |
parent | c2f828977ba5d17c13debba374ea252d18e5ccfb (diff) |
[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>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions