aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/radeon')
-rw-r--r--drivers/gpu/drm/radeon/r600_cp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/r600_cp.c b/drivers/gpu/drm/radeon/r600_cp.c
index 37249b26f836..f915f1153b41 100644
--- a/drivers/gpu/drm/radeon/r600_cp.c
+++ b/drivers/gpu/drm/radeon/r600_cp.c
@@ -121,6 +121,9 @@ void r600_page_table_cleanup(struct drm_device *dev, struct drm_ati_pcigart_info
121 int pages; 121 int pages;
122 int i; 122 int i;
123 123
124 if (!entry)
125 return;
126
124 if (gart_info->bus_addr) { 127 if (gart_info->bus_addr) {
125 max_pages = (gart_info->table_size / sizeof(u32)); 128 max_pages = (gart_info->table_size / sizeof(u32));
126 pages = (entry->pages <= max_pages) 129 pages = (entry->pages <= max_pages)