drm/i915: fix another use-after-free in i915_gem_evict_everything
authorMichel Thierry <[email protected]>
Tue, 9 Sep 2014 12:04:43 +0000 (13:04 +0100)
committerDaniel Vetter <[email protected]>
Fri, 19 Sep 2014 12:41:16 +0000 (14:41 +0200)
commitcf303626748e0a5c059e453d025539583d870116
tree377e1c45d9ba381b44d70bb3b81adea0686b9447
parenta1e470d421f68d69bf35c1ed316a861625010eab
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 <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
drivers/gpu/drm/i915/i915_gem_evict.c