summaryrefslogtreecommitdiff
path: root/source/x/x11/patch/xorg-server/fix-pci-segfault.diff
diff options
context:
space:
mode:
Diffstat (limited to 'source/x/x11/patch/xorg-server/fix-pci-segfault.diff')
-rw-r--r--source/x/x11/patch/xorg-server/fix-pci-segfault.diff12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/x/x11/patch/xorg-server/fix-pci-segfault.diff b/source/x/x11/patch/xorg-server/fix-pci-segfault.diff
new file mode 100644
index 00000000..40037628
--- /dev/null
+++ b/source/x/x11/patch/xorg-server/fix-pci-segfault.diff
@@ -0,0 +1,12 @@
+diff --git a/hw/xfree86/common/xf86platformBus.c b/hw/xfree86/common/xf86platformBus.c
+index cef47da03d0e91e6a56a5e3cb14a51d931633eff..dadbac6c8f0ae6f3d636fdfe245e61bc0c98581d 100644
+--- a/hw/xfree86/common/xf86platformBus.c
++++ b/hw/xfree86/common/xf86platformBus.c
+@@ -289,7 +289,7 @@ xf86platformProbe(void)
+ for (i = 0; i < xf86_num_platform_devices; i++) {
+ char *busid = xf86_platform_odev_attributes(i)->busid;
+
+- if (pci && (strncmp(busid, "pci:", 4) == 0)) {
++ if (pci && busid && (strncmp(busid, "pci:", 4) == 0)) {
+ platform_find_pci_info(&xf86_platform_devices[i], busid);
+ }