Summary: | video-xgi: compile error in xgi_driver when opening framebuffer | ||||||
---|---|---|---|---|---|---|---|
Product: | xorg | Reporter: | Gaetan Nadon <memsize> | ||||
Component: | Driver/XGI | Assignee: | Gaetan Nadon <memsize> | ||||
Status: | RESOLVED FIXED | QA Contact: | Xorg Project Team <xorg-team> | ||||
Severity: | normal | ||||||
Priority: | medium | Keywords: | janitor | ||||
Version: | git | ||||||
Hardware: | x86-64 (AMD64) | ||||||
OS: | Linux (All) | ||||||
Whiteboard: | |||||||
i915 platform: | i915 features: | ||||||
Attachments: |
|
Description
Gaetan Nadon
2009-07-28 16:39:21 UTC
I found that this has been fixed in the Pardus project some times ago. --- xf86-video-xgi-1.5.0/src/xgi_driver.c.orig 2008-01-19 20:28:22.000000000 +0000 +++ xf86-video-xgi-1.5.0/src/xgi_driver.c 2008-01-19 20:28:55.000000000 +0000 @@ -2504,7 +2504,7 @@ FbDevExist = FALSE; if (pXGI->Chipset != PCI_CHIP_XGIXG20) { - if ((fd = open("/dev/fb", 'r')) != -1) { + if ((fd = open("/dev/fb", O_RDONLY)) != -1) { PDEBUG(ErrorF("--- open /dev/fb.... \n")); ioctl(fd, FBIOGET_FSCREENINFO, &fix); if (fix.accel == FB_ACCEL_XGI_GLAMOUR) { Also fixed in opensuse.org +--- src/xgi_driver.c.orig 2008-01-19 20:28:22.000000000 +0000 ++++ src/xgi_driver.c 2008-01-19 20:28:55.000000000 +0000 +@@ -2504,7 +2504,7 @@ + + FbDevExist = FALSE; + if (pXGI->Chipset != PCI_CHIP_XGIXG20) { +- if ((fd = open("/dev/fb", 'r')) != -1) { ++ if ((fd = open("/dev/fb", O_RDONLY)) != -1) { + PDEBUG(ErrorF("--- open /dev/fb.... \n")); + ioctl(fd, FBIOGET_FSCREENINFO, &fix); Created attachment 28132 [details] [review] [PATCH] video-xgi: fix incorrect function call to open() #23010 Pushed as b085ad2f3e68667e625eb60a675ff77180c0c288. fwiw, I'm not sure if spending time on video-xgi is time well spent :) |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.