From: Christoph Hellwig Date: Wed, 19 Sep 2007 04:38:12 +0000 (+1000) Subject: [POWERPC] spusched: Fix null pointer dereference in find_victim X-Git-Tag: v2.6.23-rc7~8^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0e7b4aa1c09ea992808ea8c079141bc8dd0f5bc;p=pandora-kernel.git [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 Signed-off-by: Arnd Bergmann Signed-off-by: Jeremy Kerr Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed