aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c
index edec30fd3ecd..0a7b6ed5ed28 100644
--- a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c
+++ b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c
@@ -37,7 +37,10 @@ nv04_fifo_dma_object_dtor(struct nvkm_fifo_chan *base, int cookie)
37{ 37{
38 struct nv04_fifo_chan *chan = nv04_fifo_chan(base); 38 struct nv04_fifo_chan *chan = nv04_fifo_chan(base);
39 struct nvkm_instmem *imem = chan->fifo->base.engine.subdev.device->imem; 39 struct nvkm_instmem *imem = chan->fifo->base.engine.subdev.device->imem;
40
41 mutex_lock(&chan->fifo->base.engine.subdev.mutex);
40 nvkm_ramht_remove(imem->ramht, cookie); 42 nvkm_ramht_remove(imem->ramht, cookie);
43 mutex_unlock(&chan->fifo->base.engine.subdev.mutex);
41} 44}
42 45
43static int 46static int