summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2009-03-07 18:25:18 -0500
committerAlex Deucher <alexdeucher@gmail.com>2009-03-07 18:25:18 -0500
commit160d78a88999cce552f82e6b79e50a9d2140b267 (patch)
treed7319c4ddbe420834e5115f2ecd2bd514e488e99
parentcf8196e6eb9723a13f2155a4e253e4f3c2698148 (diff)
r6xx/r7xx: fix possible oops in r600_page_table_cleanup()
-rw-r--r--shared-core/r600_cp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/shared-core/r600_cp.c b/shared-core/r600_cp.c
index 3baef856..8fb128c3 100644
--- a/shared-core/r600_cp.c
+++ b/shared-core/r600_cp.c
@@ -434,6 +434,10 @@ void r600_page_table_cleanup(struct drm_device *dev, struct drm_ati_pcigart_info
int max_pages;
int pages;
int i;
+
+ if (!entry)
+ return;
+
#endif
if (gart_info->bus_addr) {
#ifdef __linux__