drm: savage: dev->agp_buffer_map is not initialized for AGP DMA on savages

fd.o bug 8662

Signed-off-by: Dave Airlie <airlied@linux.ie>
This commit is contained in:
Michael Karcher 2006-10-24 21:46:55 +10:00 committed by Dave Airlie
parent a1aa289703
commit 10eee0fe91

View 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) {