diff options
author | Eric Anholt <eric@anholt.net> | 2009-12-14 13:12:45 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-12-15 12:11:26 -0800 |
commit | 656cb79322319a7bbafec7912d262142e9a38bc0 (patch) | |
tree | 1487311cb7331be429611c7272fbb0962aecb38e /drivers/gpu | |
parent | 8bea8672edfca7ec5f661cafb218f1205863b343 (diff) | |
download | op-kernel-dev-656cb79322319a7bbafec7912d262142e9a38bc0.zip op-kernel-dev-656cb79322319a7bbafec7912d262142e9a38bc0.tar.gz |
drm/i915: In the debugfs interface, unmap our address instead of the page's.
Fixes a BUG_ON in kmap_atomic for the following atomic mapping with
USER0 type.
Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/i915/i915_debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 18476bf..463e8d0 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -272,7 +272,7 @@ static void i915_dump_pages(struct seq_file *m, struct page **pages, int page_co mem = kmap_atomic(pages[page], KM_USER0); for (i = 0; i < PAGE_SIZE; i += 4) seq_printf(m, "%08x : %08x\n", i, mem[i / 4]); - kunmap_atomic(pages[page], KM_USER0); + kunmap_atomic(mem, KM_USER0); } } |