summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2012-05-23 21:20:23 +0300
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-07-15 19:12:07 +0200
commitf246a251f88dab6a9db83e2d8bbd699e29950459 (patch)
tree98ac31903497c2a1770384f421b3a16d657bd1fb
parent6dedd9a3f997c0112e71cfd0b28465348dfbbc36 (diff)
qxl_close_screen: disable fb access, prevent segfaults in uxa later on
I don't have a stacktrace to show any segfault unfortunately.
-rw-r--r--src/qxl_driver.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qxl_driver.c b/src/qxl_driver.c
index 3cf3137..2b0d567 100644
--- a/src/qxl_driver.c
+++ b/src/qxl_driver.c
@@ -638,6 +638,12 @@ qxl_close_screen(CLOSE_SCREEN_ARGS_DECL)
qxl_screen_t *qxl = pScrn->driverPrivate;
Bool result;
+ ErrorF ("Disabling FB access for %d\n", pScrn->scrnIndex);
+#ifndef XF86_SCRN_INTERFACE
+ pScrn->EnableDisableFBAccess (scrnIndex, FALSE);
+#else
+ pScrn->EnableDisableFBAccess (pScrn, FALSE);
+#endif
ErrorF ("Freeing %p\n", qxl->fb);
free(qxl->fb);
qxl->fb = NULL;