aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2011-02-07 12:00:51 +1000
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-24 14:54:23 -0800
commit67568e388b203c7e9b1d5716799a9895a4177926 (patch)
tree31458b45f1f8c100787c73d6acae8a62149be01c
parent0e1e47198c03442db45e7287b890c9acc7dce084 (diff)
downloadlinux-hpc-67568e388b203c7e9b1d5716799a9895a4177926.tar.gz
drm/radeon: fix memory debugging since d961db75ce86a84f1f04e91ad1014653ed7d9f46
commit 16f9fdcbcce74102bed9a4b7ccc1fb05b5dd6ca3 upstream. The old code dereferenced a value, the new code just needs to pass the ptr. fixes an oops looking at files in debugfs. Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/gpu/drm/radeon/radeon_ttm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_ttm.c b/drivers/gpu/drm/radeon/radeon_ttm.c
index 1272e4b6a1d454..e5b2cf10cbf4fe 100644
--- a/drivers/gpu/drm/radeon/radeon_ttm.c
+++ b/drivers/gpu/drm/radeon/radeon_ttm.c
@@ -787,9 +787,9 @@ static int radeon_ttm_debugfs_init(struct radeon_device *rdev)
radeon_mem_types_list[i].show = &radeon_mm_dump_table;
radeon_mem_types_list[i].driver_features = 0;
if (i == 0)
- radeon_mem_types_list[i].data = &rdev->mman.bdev.man[TTM_PL_VRAM].priv;
+ radeon_mem_types_list[i].data = rdev->mman.bdev.man[TTM_PL_VRAM].priv;
else
- radeon_mem_types_list[i].data = &rdev->mman.bdev.man[TTM_PL_TT].priv;
+ radeon_mem_types_list[i].data = rdev->mman.bdev.man[TTM_PL_TT].priv;
}
/* Add ttm page pool to debugfs */