Commit 08932156 authored by Alex Deucher's avatar Alex Deucher Committed by Dave Airlie

drm/radeon: r6xx/r7xx: fix possible oops in r600_page_table_cleanup()

Signed-off-by: default avatarAlex Deucher <alexdeucher@gmail.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 53c379e9
...@@ -121,6 +121,9 @@ void r600_page_table_cleanup(struct drm_device *dev, struct drm_ati_pcigart_info ...@@ -121,6 +121,9 @@ void r600_page_table_cleanup(struct drm_device *dev, struct drm_ati_pcigart_info
int pages; int pages;
int i; int i;
if (!entry)
return;
if (gart_info->bus_addr) { if (gart_info->bus_addr) {
max_pages = (gart_info->table_size / sizeof(u32)); max_pages = (gart_info->table_size / sizeof(u32));
pages = (entry->pages <= max_pages) pages = (entry->pages <= max_pages)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment