[PATCH] check for vtsema before calling into driver output & crtc routines

Jesse Barnes jbarnes at virtuousgeek.org
Mon Mar 17 08:36:07 PDT 2008


On Monday, March 17, 2008 8:20 am Jesse Barnes wrote:
> This is a fix for #14444.  Seems to work ok, so unless there are objections
> I'll go ahead and push.

After a quick review from Keith and some additional testing, here's what I 
ended up pushing.

Thanks,
Jesse



diff --git a/hw/xfree86/modes/xf86RandR12.c b/hw/xfree86/modes/xf86RandR12.c
index 1dca223..4767f26 100644
--- a/hw/xfree86/modes/xf86RandR12.c
+++ b/hw/xfree86/modes/xf86RandR12.c
@@ -743,6 +743,9 @@ xf86RandR12CrtcSet (ScreenPtr       pScreen,
     xf86CrtcPtr                *save_crtcs;
     Bool               save_enabled = crtc->enabled;

+    if (!crtc->scrn->vtSema)
+       return FALSE;
+
     save_crtcs = xalloc(config->num_output * sizeof (xf86CrtcPtr));
     if ((randr_mode != NULL) != crtc->enabled)
        changed = TRUE;




More information about the xorg mailing list