summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry Zhao <henry.zhao@oracle.com>2010-08-11 20:16:44 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2010-08-11 20:16:44 -0700
commit5b208a2b8d1032489a02c465830150422d1123cc (patch)
treedb5d5ee70415ec72c253a42e3ef094b40c5d1f18
parentb9d6d0309abdec7b384cb1f0958b9bcd60364e60 (diff)
Check for NULL currentMode in vuidMouseSendScreenSize()
Fixes Sun bug 6920647: Core dump in resume when monitor changed in suspend http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6920647 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/sun_mouse.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sun_mouse.c b/src/sun_mouse.c
index ddcdd90..ada445d 100644
--- a/src/sun_mouse.c
+++ b/src/sun_mouse.c
@@ -469,6 +469,9 @@ static void vuidMouseSendScreenSize(ScreenPtr pScreen, VuidMsePtr pVuidMse)
ScrnInfoPtr pScr = XF86SCRNINFO(pScreen);
int result;
+ if (!pScr->currentMode)
+ return;
+
if ((pVuidMse->absres.width != pScr->currentMode->HDisplay) ||
(pVuidMse->absres.height != pScr->currentMode->VDisplay))
{