diff options
author | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2008-01-31 18:26:46 +0800 |
---|---|---|
committer | Jesse Barnes <jbarnes@hobbes.virtuousgeek.org> | 2008-02-05 11:06:11 -0800 |
commit | 48eac1a03785c6a795193bb884b2c23dcd5b815b (patch) | |
tree | bda46cc88342e4d807e8c7b7150b95b2e9b0dc76 | |
parent | 103dc34f3afc17cea7e086927e124a30c605a686 (diff) | |
download | xorg-driver-xf86-video-intel-48eac1a03785c6a795193bb884b2c23dcd5b815b.tar.gz |
Don't crash if SW cursor
In case of device option or hw cursor allocation fails.
-rw-r--r-- | src/i830_memory.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/i830_memory.c b/src/i830_memory.c index 85b65285..43d2e0f2 100644 --- a/src/i830_memory.c +++ b/src/i830_memory.c @@ -1929,7 +1929,8 @@ i830_bind_all_memory(ScrnInfoPtr pScrn) } #endif } - i830_update_cursor_offsets(pScrn); + if (!pI830->SWCursor) + i830_update_cursor_offsets(pScrn); return TRUE; } |