Commit 7ff7cec9 authored by Egbert Eich's avatar Egbert Eich

Unmap XCursor AGP memory on VT switch to prevent system from lockup

(Matthias Hopf).
parent d4c87adf
......@@ -1497,6 +1497,11 @@ I810DRILeave(ScrnInfoPtr pScrn)
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,"%s\n",strerror(errno));
return FALSE;
}
if (pI810->cursorARGBHandle != 0)
if (drmAgpUnbind(pI810->drmSubFD, pI810->cursorARGBHandle) != 0) {
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,"%s\n",strerror(errno));
return FALSE;
}
if (pI810->agpAcquired == TRUE)
drmAgpRelease(pI810->drmSubFD);
pI810->agpAcquired = FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment