From: Chris Wilson Date: Wed, 21 Nov 2012 13:04:03 +0000 (+0000) Subject: drm/i915: Defer assignment of obj->gtt_space until after all possible mallocs X-Git-Tag: v3.8-rc1~82^2~14^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8742267af4043606869f5b8dadbef635405543c3;p=pandora-kernel.git drm/i915: Defer assignment of obj->gtt_space until after all possible mallocs As we may invoke the shrinker whilst trying to allocate memory to hold the gtt_space for this object, we need to be careful not to mark the drm_mm_node as activated (by assigning it to this object) before we have finished our sequence of allocations. Note: We also need to move the binding of the object into the actual pagetables down a bit. The best way seems to be to move it out into the callsites. Reported-by: Imre Deak Signed-off-by: Chris Wilson [danvet: Added small note to commit message to summarize review discussion.] Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed