summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2010-07-20 22:14:22 +0200
committerDave Airlie <airlied@redhat.com>2010-07-21 09:36:26 +1000
commit2f98724d1e603268360d704b3c8823b93d5fecb4 (patch)
treef5a4cf1438149cdd4ddac7fddc84105265a13859
parente5159771bd0a013201dcef760e9320071c6df59e (diff)
Fix long standing MTRR bug.
Add an include that makes the file common_vgaarb.c see the same struct pci_system as the file linux_sysfs.c. Without this fix, on a MTRR system, the vgaarb_fd member would overwrite the mtrr_fd member and cause the MTRR_IOC_ADD_ENTRY call to be issued to the incorrect device causing the infamous "Inappropriate ioctl for device (25)" error. This error would cause MTRR setup to fail on all systems relying on it and is severe enough to warrant a new release. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--src/common_vgaarb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common_vgaarb.c b/src/common_vgaarb.c
index c94b362..86eceb5 100644
--- a/src/common_vgaarb.c
+++ b/src/common_vgaarb.c
@@ -33,6 +33,7 @@
#include <stdlib.h>
#include <limits.h>
+#include "config.h"
#include "pciaccess.h"
#include "pciaccess_private.h"