drmUnmap correct size
authorAlan Hourihane <alanh@tungstengraphics.com>
Tue, 30 Aug 2005 20:37:30 +0000 (20:37 +0000)
committerAlan Hourihane <alanh@tungstengraphics.com>
Tue, 30 Aug 2005 20:37:30 +0000 (20:37 +0000)
src/mesa/drivers/dri/unichrome/via_screen.c

index 4ca4a071a5f9c131ecb31ecf18102722ed64b326..de2f5ea07d9695ac86fd05e834483f4f34929365 100644 (file)
@@ -163,7 +163,7 @@ viaInitDriver(__DRIscreenPrivate *sPriv)
                    gDRIPriv->agp.handle,
                    gDRIPriv->agp.size,
                   (drmAddress *)&viaScreen->agpLinearStart) != 0) {
-           drmUnmap(viaScreen->reg, gDRIPriv->agp.size);
+           drmUnmap(viaScreen->reg, gDRIPriv->regs.size);
            FREE(viaScreen);
            sPriv->private = NULL;
            __driUtilMessage("viaInitDriver: drmMap agp failed");