File U_04-Initialize-pci_dev.patch of Package xf86-video-fbdev

From: Pascal Terjan <pterjan@google.com>
Date: Fri Jan 22 00:26:22 2016 +0000
Subject: [PATCH 4/13]Initialize pci_dev
Patch-mainline: Upstream
Git-repo: git://anongit.freedesktop.org/xorg/driver/xf86-video-fbdev
Git-commit: 66e7909bfefd93c05aa37d0cadccc5348f0382be
References: 
Signed-off-by: Max Staudt <mstaudt@suse.de>

Else it is read before initialization if XSERVER_LIBPCIACCESS is not
defined or location.type is not BUS_PCI.

Noticed when I got a segfault where it was 0x1 while doing some tests on
arm.

Signed-off-by: Pascal Terjan <pterjan@google.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
---
 src/fbdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/fbdev.c b/src/fbdev.c
index dcfed28..2c658fe 100644
--- a/src/fbdev.c
+++ b/src/fbdev.c
@@ -427,7 +427,7 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
 	int default_depth, fbbpp;
 	const char *s;
 	int type;
-	void *pci_dev;
+	void *pci_dev = NULL;
 
 	if (flags & PROBE_DETECT) return FALSE;
openSUSE Build Service is sponsored by