[Openchrome-devel] xf86-video-openchrome: src/via_driver.c

Kevin Brace kevinbrace at kemper.freedesktop.org
Wed Mar 16 07:22:11 UTC 2016


 src/via_driver.c |    3 ---
 1 file changed, 3 deletions(-)

New commits:
commit e84260a493b9da98ca8f6468b0f1908b9f94b87e
Author: Kevin Brace <kevinbrace at gmx.com>
Date:   Tue Mar 15 23:27:10 2016 -0700

    Removing an erroneous call to VIAUnmapMMIO when exiting
    
    During testing of the code, a crash was occurring when it was in
    the process of releasing various memory resources due to the X Server
    not being able to detect a screen. In short, VIAUnmapMMIO function was
    being called twice when it should be called only once.
    
    Signed-off-by: Kevin Brace <kevinbrace at gmx.com>

diff --git a/src/via_driver.c b/src/via_driver.c
index 9036d6f..c27b77e 100644
--- a/src/via_driver.c
+++ b/src/via_driver.c
@@ -454,9 +454,6 @@ VIAFreeScreen(FREE_SCREEN_ARGS_DECL)
 
     DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO, "VIAFreeScreen\n"));
 
-    if (pVia->directRenderingType != DRI_2)
-        VIAUnmapMMIO(pScrn);
-
     VIAFreeRec(pScrn);
 
     if (!pVia->KMS && xf86LoaderCheckSymbol("vgaHWFreeHWRec"))


More information about the Openchrome-devel mailing list