aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2020-01-23 08:23:06 +1000
committerBen Skeggs <bskeggs@redhat.com>2020-01-23 08:56:51 +1000
commit35e4909b6a2b4005ced3c4238da60d926b78fdea (patch)
treecf160e6aee52c520898f437dda832678458b9197 /drivers/gpu/drm/nouveau
parentdrm/nouveau/gr/gp10b: Use gp100_grctx and gp100_gr_zbc (diff)
downloadlinux-dev-35e4909b6a2b4005ced3c4238da60d926b78fdea.tar.xz
linux-dev-35e4909b6a2b4005ced3c4238da60d926b78fdea.zip
drm/nouveau/mmu: fix comptag memory leak
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau')
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/core/memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/core/memory.c b/drivers/gpu/drm/nouveau/nvkm/core/memory.c
index e85a08ecd9da..4cc186262d34 100644
--- a/drivers/gpu/drm/nouveau/nvkm/core/memory.c
+++ b/drivers/gpu/drm/nouveau/nvkm/core/memory.c
@@ -91,8 +91,8 @@ nvkm_memory_tags_get(struct nvkm_memory *memory, struct nvkm_device *device,
}
refcount_set(&tags->refcount, 1);
+ *ptags = memory->tags = tags;
mutex_unlock(&fb->subdev.mutex);
- *ptags = tags;
return 0;
}