[Cbe-oss-dev] [PATCH] spusched: fix null pointer dereference in find_victim
Arnd Bergmann
arnd at arndb.de
Tue Jul 31 23:18:36 EST 2007
On Tuesday 31 July 2007, Christoph Hellwig wrote:
> 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 at lst.de>
Acked-by: Arnd Bergmann <arnd.bergmann at de.ibm.com>
More information about the cbe-oss-dev
mailing list