diff options
author | Adam Jackson <ajax@redhat.com> | 2012-01-24 17:35:04 -0500 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-01-25 09:26:23 -0800 |
commit | 02775efb8930291cc62fc84086c97da75b912a55 (patch) | |
tree | e08df21cc02e9657e938862fab1d054914fe99e7 | |
parent | e1085a0da0b9299f48b3dc41dee5e33bf022bea5 (diff) |
int10: Fix unmapping of the BIOS scratch area
342f3eac8460fc48cfad1f1d7be939d671e6e1cd introduced a bug, 'base' is
incremented before use. The old code corrected this when unmapping, so
the new code should too.
Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | hw/xfree86/int10/helper_exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xfree86/int10/helper_exec.c b/hw/xfree86/int10/helper_exec.c index 638f5668b..03f9f7da6 100644 --- a/hw/xfree86/int10/helper_exec.c +++ b/hw/xfree86/int10/helper_exec.c @@ -726,7 +726,7 @@ xf86Int10SaveRestoreBIOSVars(xf86Int10InfoPtr pInt, Bool save) } } - pci_device_unmap_legacy(pInt->dev, base, pagesize); + pci_device_unmap_legacy(pInt->dev, base - BIOS_SCRATCH_OFF, pagesize); } #endif |