Please apply to both drm-next and drm-rawhide

http://www.botchco.com/alex/xorg/r6xx_drm/0001-R6xx-R7xx-fix-possible-oops-in-r600_page_table_clea.patch

>From 453ed78a62d3125ecdb2a1e5ea27b3368fa66330 Mon Sep 17 00:00:00 2001
From: Alex Deucher <[email protected]>
Date: Sat, 7 Mar 2009 18:16:42 -0500
Subject: [PATCH] R6xx/R7xx: fix possible oops in r600_page_table_cleanup()

Signed-off-by: Alex Deucher <[email protected]>
---
 drivers/gpu/drm/radeon/r600_cp.c |    3 +++
 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 dc19dbe..ca4eb2f 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
        int pages;
        int i;

+       if (!entry)
+               return;
+
        if (gart_info->bus_addr) {
                max_pages = (gart_info->table_size / sizeof(u32));
                pages = (entry->pages <= max_pages)
-- 
1.5.6.3

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to