summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <airlied@gmail.com>2023-12-22 14:31:54 +1000
committerDave Airlie <airlied@redhat.com>2024-01-05 12:27:53 +1000
commit3108cc03236b54c56e34de01227cdacf764c50a8 (patch)
tree37a8a7249cd8bcdf826d64ab31bc620f872d9011
parenta9b9b42b54b2c9251144b3b9d4ebcd83e5f8c230 (diff)
downloadlinux-stable-3108cc03236b54c56e34de01227cdacf764c50a8.tar.gz
linux-stable-3108cc03236b54c56e34de01227cdacf764c50a8.tar.bz2
linux-stable-3108cc03236b54c56e34de01227cdacf764c50a8.zip
nouveau/gsp: free userd allocation.
This was being leaked. Signed-off-by: Dave Airlie <airlied@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20231222043308.3090089-6-airlied@gmail.com
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/engine/fifo/r535.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/r535.c b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/r535.c
index d088e636edc3..b903785056b5 100644
--- a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/r535.c
+++ b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/r535.c
@@ -242,6 +242,7 @@ r535_chan_id_put(struct nvkm_chan *chan)
nvkm_memory_unref(&userd->mem);
nvkm_chid_put(runl->chid, userd->chid, &chan->cgrp->lock);
list_del(&userd->head);
+ kfree(userd);
}
break;