79ca48c48b
Drop second patch following upstream review:
https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/555
Indeed, this patch has been dropped from openembedded since 2018 because
"it is forcing input to use SIGIO, despite the fact that since 2015
xserver has used an input thread.":
cde11398e6
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
From e50c85f4ebf559a3bac4817b41074c43d4691779 Mon Sep 17 00:00:00 2001
|
|
From: Eric Anholt <eric@anholt.net>
|
|
Date: Fri, 26 Oct 2018 17:47:30 -0700
|
|
Subject: [PATCH] Fix segfault on probing a non-PCI platform device on a system
|
|
with PCI.
|
|
|
|
Some Broadcom set-top-box boards have PCI busses, but the GPU is still
|
|
probed through DT. We would dereference a null busid here in that
|
|
case.
|
|
|
|
Signed-off-by: Eric Anholt <eric@anholt.net>
|
|
Backported from: e50c85f4ebf559a3bac4817b41074c43d4691779
|
|
Signed-off-by: Joseph Kogut <joseph.kogut@gmail.com>
|
|
---
|
|
hw/xfree86/common/xf86platformBus.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/hw/xfree86/common/xf86platformBus.c b/hw/xfree86/common/xf86platformBus.c
|
|
index cef47da03..dadbac6c8 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);
|
|
}
|
|
|
|
--
|
|
2.24.1
|
|
|