drm: savage: dev->agp_buffer_map is not initialized for AGP DMA on savages
authorMichael Karcher <freedesktop-bugzilla@mkarcher.dialup.fu-berlin.de>
Tue, 24 Oct 2006 11:46:55 +0000 (21:46 +1000)
committerDave Airlie <airlied@linux.ie>
Tue, 24 Oct 2006 11:46:55 +0000 (21:46 +1000)
fd.o bug 8662

Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/savage_bci.c

index 59c7520bf9a2ab9419910ac10c186322d3b6ffc8..a9a84f88df5e465ce2c9461e97b91bd9c48e074b 100644 (file)
@@ -728,6 +728,7 @@ static int savage_do_init_bci(drm_device_t * dev, drm_savage_init_t * init)
                dev_priv->status = NULL;
        }
        if (dev_priv->dma_type == SAVAGE_DMA_AGP && init->buffers_offset) {
+               dev->agp_buffer_token = init->buffers_offset;
                dev->agp_buffer_map = drm_core_findmap(dev,
                                                       init->buffers_offset);
                if (!dev->agp_buffer_map) {