mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-25 13:50:29 +01:00
xfree86: don't crash in AutoConfig if the primary device is not pci
Only call matchDriverFromFiles() if we found a pci device.
Debian bug#472823 (http://bugs.debian.org/472823).
(cherry picked from commit 9500033b9e)
This commit is contained in:
parent
841aa08ea4
commit
8059b57f9b
1 changed files with 3 additions and 2 deletions
|
|
@ -436,9 +436,10 @@ chooseVideoDriver(void)
|
|||
if (!info) {
|
||||
ErrorF("Primary device is not PCI\n");
|
||||
}
|
||||
|
||||
#ifdef __linux__
|
||||
matchDriverFromFiles(matches, info->vendor_id, info->device_id);
|
||||
else {
|
||||
matchDriverFromFiles(matches, info->vendor_id, info->device_id);
|
||||
}
|
||||
#endif /* __linux__ */
|
||||
|
||||
/* TODO Handle multiple drivers claiming to support the same PCI ID */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue