[PATCH] drm/sis: Fix building with CONFIG_FB_SIS/CONFIG_FB_SIS_MODULE

Tormod Volden lists.tormod at gmail.com
Fri Oct 28 16:05:59 PDT 2011


From: Tormod Volden <debian.tormod at gmail.com>

---

On top of danvet's kill-with-fire ad83cc3.

Tormod

 drivers/gpu/drm/sis/sis_mm.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/sis/sis_mm.c b/drivers/gpu/drm/sis/sis_mm.c
index 112a43b..63c2f75 100644
--- a/drivers/gpu/drm/sis/sis_mm.c
+++ b/drivers/gpu/drm/sis/sis_mm.c
@@ -116,7 +116,7 @@ static int sis_drm_alloc(struct drm_device *dev, struct drm_file *file,
 		item->req.size = mem->size;
 		sis_malloc(&item->req);
 		if (item->req.size == 0)
-			retval = -ENOMEN;
+			retval = -ENOMEM;
 		offset = item->req.offset;
 #else
 		retval = drm_mm_insert_node(&dev_priv->vram_mm,
@@ -343,7 +343,7 @@ void sis_reclaim_buffers_locked(struct drm_device *dev,
 			drm_mm_remove_node(&entry->mm_node);
 #if defined(CONFIG_FB_SIS) || defined(CONFIG_FB_SIS_MODULE)
 		else
-			sis_free(entry->req->offset);
+			sis_free(entry->req.offset);
 #endif
 		kfree(entry);
 	}
-- 
1.7.5.4



More information about the dri-devel mailing list