]> git.ipfire.org Git - people/ms/linux.git/commit
drm/i915: Check obj->vma_list under the struct_mutex
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 12 Feb 2015 07:53:18 +0000 (07:53 +0000)
committerJani Nikula <jani.nikula@intel.com>
Tue, 24 Feb 2015 13:30:42 +0000 (15:30 +0200)
commit6c31a614c43ae274546f736b2a33363e149c3dc2
tree789a38d65a150244fe4b8ade763340a600960452
parentb3a38998f042b862f5ba4d7f2268f3a8dfb4883a
drm/i915: Check obj->vma_list under the struct_mutex

When we walk the list of vma, or even for protecting against concurrent
framebuffer creation, we must hold the struct_mutex or else a second
thread can corrupt the list as we walk it.

Fixes regression from
commit d7f46fc4e7323887494db13f063a8e59861fefb0
Author: Ben Widawsky <benjamin.widawsky@intel.com>
Date:   Fri Dec 6 14:10:55 2013 -0800

    drm/i915: Make pin count per VMA

References: https://bugs.freedesktop.org/show_bug.cgi?id=89085
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: stable@vger.kernel.org
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_gem_tiling.c