From: Chris Wilson Date: Wed, 3 Sep 2014 18:23:37 +0000 (+0100) Subject: drm/i915: Fix unsafe vma iteration in i915_drop_caches X-Git-Tag: fixes-against-v3.18-rc2~73^2~32^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ad72b7fadd285f849439cdbc408f8b847cef704;p=pandora-kernel.git drm/i915: Fix unsafe vma iteration in i915_drop_caches When unbinding, there is a possibility that we drop the active reference on the object, thereby freeing it. If that happens, we may destroy the vm link as well as the object and vma. So iterate carefully. Signed-off-by: Chris Wilson Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed