]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Initialize obj->pages before use by i915_gem_object_do_bit17_swizzle()
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 19 Oct 2012 14:51:06 +0000 (15:51 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 19 Oct 2012 19:52:52 +0000 (21:52 +0200)
commit4331d441ff112cd41bfc5dc5221c94e6a9a757dc
tree2c93efea0fcf247339dfc6337a2d2d76869a2e08
parenteecc64e5f5ca5b221114650e4cf5150791ce9b34
drm/i915: Initialize obj->pages before use by i915_gem_object_do_bit17_swizzle()

If we leave obj->pages set to NULL before attempting to deswizzle them,
then an OOPS is well deserved.

Fixes regression introduced in commit 46aff9fcf525bac26273480af7cc17f3b7e25071
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Fri Jun 1 15:20:22 2012 +0100

    drm/i915: Replace the array of pages with a scatterlist

Reported-and-tested-by: Krzysztof Kolasa
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c