summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-10-30 22:52:31 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-10-30 22:52:31 +0100
commitff75b9bc489710ff223bc0d805bf3b862dc347ea (patch)
treed0fc6f9e07a9bc65c70c03849f345799604ee8b9 /drivers/gpu
parentadd354ddf62beac55ca3ba64835dd703a0649867 (diff)
downloadblackbird-op-linux-ff75b9bc489710ff223bc0d805bf3b862dc347ea.tar.gz
blackbird-op-linux-ff75b9bc489710ff223bc0d805bf3b862dc347ea.zip
drm/i915: Fix typo from e5281ccd in i915_gem_attach_phys_object()
Accessing the uninitialised obj->pages instead of the local page lead to an OOPs. Reported-by: Xavier Chantry <chantry.xavier@gmail.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/i915/i915_gem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 936ddd83f8a2..e3fc333e2e57 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -4925,7 +4925,7 @@ i915_gem_attach_phys_object(struct drm_device *dev,
if (IS_ERR(page))
return PTR_ERR(page);
- src = kmap_atomic(obj_priv->pages[i]);
+ src = kmap_atomic(page);
dst = obj_priv->phys_obj->handle->vaddr + (i * PAGE_SIZE);
memcpy(dst, src, PAGE_SIZE);
kunmap_atomic(src);
OpenPOWER on IntegriCloud