diff options
author | Alon Levy <alevy@redhat.com> | 2012-05-23 21:20:23 +0300 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2012-06-27 14:41:30 +0300 |
commit | a22751ddf654af9973a812c89b66ccbada9acb00 (patch) | |
tree | ed004d9958fc57f7561550efc991af9fc758d548 | |
parent | 4bcaba4203dfb079eaf9a01c3b0c997563e8c6a9 (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.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qxl_driver.c b/src/qxl_driver.c index d765aff..284ffa1 100644 --- a/src/qxl_driver.c +++ b/src/qxl_driver.c @@ -639,6 +639,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; |