summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Randrianasulu <randrik@mail.ru>2008-11-24 12:46:48 -0500
committerAlex Deucher <alexdeucher@gmail.com>2008-11-24 12:46:48 -0500
commit115436e1ec83e43b1e7727903036720cb109abef (patch)
treee9d588f47e36dbf63a5e24d8de1ab834104474f6
parentef1ca4800ee75044243d0eb2346240c50c28f0aa (diff)
Fix typo in map setup
fixes bug 18688
-rw-r--r--src/s3_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/s3_driver.c b/src/s3_driver.c
index 696e8d4..72c3294 100644
--- a/src/s3_driver.c
+++ b/src/s3_driver.c
@@ -1131,7 +1131,7 @@ static Bool S3MapMem(ScrnInfoPtr pScrn)
void** result = (void**)&pS3->FBBase;
int err = pci_device_map_range(pS3->PciInfo,
pS3->FBAddress,
- pS3->videoRam * 1024,
+ pScrn->videoRam * 1024,
PCI_DEV_MAP_FLAG_WRITABLE |
PCI_DEV_MAP_FLAG_WRITE_COMBINE,
result);