diff --git a/shared-core/nouveau_dma.c b/shared-core/nouveau_dma.c index e519dc4..1f46b3f 100644 --- a/shared-core/nouveau_dma.c +++ b/shared-core/nouveau_dma.c @@ -121,6 +121,8 @@ nouveau_dma_channel_takedown(struct drm_device *dev) DRM_DEBUG("\n"); if (dchan->chan) { + if (dchan->chan->pushbuf_mem && dchan->chan->pushbuf_mem->map) + drm_core_ioremapfree(dchan->chan->pushbuf_mem->map, dev); nouveau_fifo_free(dchan->chan); dchan->chan = NULL; }