]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix unsafe vma iteration in i915_drop_caches
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 3 Sep 2014 18:23:37 +0000 (19:23 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 4 Sep 2014 07:56:07 +0000 (09:56 +0200)
commit41afb597e3108bfbd728ad0539f3b3d9b6da35d7
treeeabc1578fbc3ade244c77c19f90294991717b324
parent0640119904c4c7e46ca2516576b9d3a69f0a5eb8
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 <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c