mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
vgaarb: if arb init fails, make sure locking doesn't occur.
pointed out by Martin Jansa on irc. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
@@ -93,6 +93,8 @@ xf86VGAarbiterFini(void)
|
||||
void
|
||||
xf86VGAarbiterLock(ScrnInfoPtr pScrn)
|
||||
{
|
||||
if (vga_no_arb)
|
||||
return;
|
||||
pci_device_vgaarb_set_target(pScrn->vgaDev);
|
||||
pci_device_vgaarb_lock();
|
||||
}
|
||||
@@ -100,6 +102,8 @@ xf86VGAarbiterLock(ScrnInfoPtr pScrn)
|
||||
void
|
||||
xf86VGAarbiterUnlock(ScrnInfoPtr pScrn)
|
||||
{
|
||||
if (vga_no_arb)
|
||||
return;
|
||||
pci_device_vgaarb_unlock();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user