]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: fix another use-after-free in i915_gem_evict_everything
authorMichel Thierry <michel.thierry@intel.com>
Tue, 9 Sep 2014 12:04:43 +0000 (13:04 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 19 Sep 2014 12:41:16 +0000 (14:41 +0200)
commit32bbe5e4a5a597bbda3f8071e320df57039b5814
tree377e1c45d9ba381b44d70bb3b81adea0686b9447
parent08b2ff9ccd710359026b28640accb1385d5d26cb
drm/i915: fix another use-after-free in i915_gem_evict_everything

Also here, i915_gem_evict_vm causes an unbind, which can end up dropping
the last ref to the ppgtt.

Triggered by igt gem_evict_everything test.

Testcase: igt/gem_evict_everything
Signed-off-by: Michel Thierry <michel.thierry@intel.com>
Reviewed-by: Chris Wilson <chris@cris-wilsonc.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_evict.c