diff options
author | Jakub Bogusz <qboosh@pld-linux.org> | 2015-09-13 12:08:32 +0200 |
---|---|---|
committer | Connor Behan <connor.behan@gmail.com> | 2015-09-14 11:43:43 -0400 |
commit | bd94c475035739b42294477cff108e0c5f15ef67 (patch) | |
tree | 4a8796d6980ab494b07e7b1d410e7245cbb8128d | |
parent | 53afaf2251d9b2eca028f30a0c43306eae366c83 (diff) |
Fix invalid mode passed to open
Signed-off-by: Jakub Bogusz <qboosh@pld-linux.org>
-rw-r--r-- | src/xgi_driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xgi_driver.c b/src/xgi_driver.c index 618fa74..e76f5e2 100644 --- a/src/xgi_driver.c +++ b/src/xgi_driver.c @@ -2800,7 +2800,7 @@ XGIPreInit(ScrnInfoPtr pScrn, int flags) FbDevExist = FALSE; if((pXGI->Chipset != PCI_CHIP_XGIXG20)&&(pXGI->Chipset != PCI_CHIP_XGIXG21)&&( pXGI->Chipset != PCI_CHIP_XGIXG27 )) { - 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) { |