379
380
/* need_close = 0, because DRICloseScreen() will handle the closing. */
380
381
if (nouveau_device_open_existing(&pNv->dev, 0, drm_fd, 0)) {
381
382
xf86DrvMsg(pScreen->myNum, X_ERROR, "Error creating device\n");
382
384
xfree(pDRIInfo->devPrivate);
383
385
pDRIInfo->devPrivate = NULL;
384
386
DRIDestroyInfoRec(pDRIInfo);