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
|
@ -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…
Reference in New Issue
Block a user