[PATCH] bus: fix structures initialization

Tiago Vignatti tiago.vignatti at nokia.com
Wed Nov 11 07:11:57 PST 2009


Signed-off-by: Tiago Vignatti <tiago.vignatti at nokia.com>
---
 hw/xfree86/os-support/shared/vidmem.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/hw/xfree86/os-support/shared/vidmem.c b/hw/xfree86/os-support/shared/vidmem.c
index 151fe62..8a11404 100644
--- a/hw/xfree86/os-support/shared/vidmem.c
+++ b/hw/xfree86/os-support/shared/vidmem.c
@@ -187,6 +187,9 @@ xf86MapVidMem(int ScreenNum, int Flags, unsigned long Base, unsigned long Size)
 	VidMapPtr vp;
 	MappingPtr mp;
 
+    vp = getVidMapRec(ScreenNum);
+    mp = newMapping(vp);
+
 	if (((Flags & VIDMEM_FRAMEBUFFER) &&
 	     (Flags & (VIDMEM_MMIO | VIDMEM_MMIO_32BIT))))
 	    FatalError("Mapping memory with more than one type\n");
-- 
1.6.0.4


--gKMricLos+KVdGMg--


More information about the xorg-devel mailing list