OSDN Git Service

Fix long standing MTRR bug.
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 20 Jul 2010 20:14:22 +0000 (22:14 +0200)
committerDave Airlie <airlied@redhat.com>
Tue, 20 Jul 2010 23:36:26 +0000 (09:36 +1000)
commit2f98724d1e603268360d704b3c8823b93d5fecb4
treef5a4cf1438149cdd4ddac7fddc84105265a13859
parente5159771bd0a013201dcef760e9320071c6df59e
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>
src/common_vgaarb.c