From: Alan Hourihane Date: Tue, 30 Aug 2005 20:37:30 +0000 (+0000) Subject: drmUnmap correct size X-Git-Tag: 062012170305~22165 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f98b9853e10abf60cf90c5b9d3f76e734b5fc8f8;p=profile%2Fivi%2Fmesa.git drmUnmap correct size --- diff --git a/src/mesa/drivers/dri/unichrome/via_screen.c b/src/mesa/drivers/dri/unichrome/via_screen.c index 4ca4a07..de2f5ea 100644 --- a/src/mesa/drivers/dri/unichrome/via_screen.c +++ b/src/mesa/drivers/dri/unichrome/via_screen.c @@ -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");