From aa3ac79759581b5eb05293a8cbcf89eb5b76712c Mon Sep 17 00:00:00 2001 From: Zhenyu Wang Date: Thu, 31 Jan 2008 18:26:46 +0800 Subject: [PATCH] Don't crash if SW cursor In case of device option or hw cursor allocation fails. --- src/i830_memory.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/i830_memory.c b/src/i830_memory.c index d97ca0b9..06c21acd 100644 --- a/src/i830_memory.c +++ b/src/i830_memory.c @@ -1946,7 +1946,8 @@ i830_bind_all_memory(ScrnInfoPtr pScrn) } #endif } - i830_update_cursor_offsets(pScrn); + if (!pI830->SWCursor) + i830_update_cursor_offsets(pScrn); return TRUE; }