mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 20:28:19 +02:00
modesetting: move closing fd to after we check outputs
On something like cirrus, start X, then attempt to start a second X while the first is running, if fbdev is installed it'll fail hard. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
02fbae85e7
commit
4aab7aa7c1
1 changed files with 1 additions and 1 deletions
|
|
@ -258,11 +258,11 @@ static Bool probe_hw_pci(const char *dev, struct pci_device *pdev)
|
|||
|
||||
id = drmGetBusid(fd);
|
||||
devid = ms_DRICreatePCIBusID(pdev);
|
||||
close(fd);
|
||||
|
||||
if (id && devid && !strcmp(id, devid))
|
||||
ret = check_outputs(fd);
|
||||
|
||||
close(fd);
|
||||
free(id);
|
||||
free(devid);
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue