uxa: Error out after failing to become DRM master during PreInit
As we set the card fd to -1 upon failure, the error here is non-recoverable, so make sure it gets propagated and we abort loading the intel ddx. Bugzilla: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/962892 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
b0d14071f7
commit
bc73acbd4d
|
|
@ -505,9 +505,11 @@ static Bool I830PreInit(ScrnInfoPtr scrn, int flags)
|
|||
|
||||
intel->PciInfo = xf86GetPciInfoForEntity(intel->pEnt->index);
|
||||
|
||||
if (!intel_open_drm_master(scrn))
|
||||
if (!intel_open_drm_master(scrn)) {
|
||||
xf86DrvMsg(scrn->scrnIndex, X_ERROR,
|
||||
"Failed to become DRM master.\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
scrn->monitor = scrn->confScreen->monitor;
|
||||
scrn->progClock = TRUE;
|
||||
|
|
|
|||
Loading…
Reference in New Issue