[PATCH] fbdevHWGetRec() doesn't return the private data

Tomas Carnecky tom at dbservice.com
Tue Feb 3 15:07:02 PST 2009


Signed-off-by: Tomas Carnecky <tom at dbservice.com>
---
 hw/xfree86/fbdevhw/fbdevhw.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/hw/xfree86/fbdevhw/fbdevhw.c b/hw/xfree86/fbdevhw/fbdevhw.c
index 495d88b..3eee070 100644
--- a/hw/xfree86/fbdevhw/fbdevhw.c
+++ b/hw/xfree86/fbdevhw/fbdevhw.c
@@ -155,7 +155,10 @@ fbdevHWFreeRec(ScrnInfoPtr pScrn)
 int
 fbdevHWGetFD(ScrnInfoPtr pScrn)
 {
-    fbdevHWPtr fPtr = fbdevHWGetRec(pScrn);
+    fbdevHWPtr fPtr;
+
+    fbdevHWGetRec(pScrn);
+    fPtr = FBDEVHWPTR(pScrn);
 
     return fPtr->fd;
 }
-- 
1.6.1.2





More information about the xorg mailing list