Add 'ret' variable to i830_allocator_init

Needed in the XF86DRI_MM case.
This commit is contained in:
Jesse Barnes 2007-11-09 13:55:46 -08:00
parent 24280edbdf
commit ab2055ebb2
1 changed files with 2 additions and 0 deletions

View File

@ -476,6 +476,8 @@ i830_allocator_init(ScrnInfoPtr pScrn, unsigned long offset, unsigned long size)
ALIGN_BOTH_ENDS | NEED_NON_STOLEN);
if (pI830->memory_manager != NULL) {
int ret;
/* Tell the kernel to manage it */
ret = drmMMInit(pI830->drmSubFD,
pI830->memory_manager->offset / GTT_PAGE_SIZE,