Sasha Levin
2020-Feb-14 16:11 UTC
[Nouveau] [PATCH AUTOSEL 4.19 208/252] drm/nouveau/mmu: fix comptag memory leak
From: Ben Skeggs <bskeggs at redhat.com> [ Upstream commit 35e4909b6a2b4005ced3c4238da60d926b78fdea ] Signed-off-by: Ben Skeggs <bskeggs at redhat.com> Signed-off-by: Sasha Levin <sashal at kernel.org> --- drivers/gpu/drm/nouveau/nvkm/core/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/core/memory.c b/drivers/gpu/drm/nouveau/nvkm/core/memory.c index e85a08ecd9da5..4cc186262d344 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; } -- 2.20.1
Seemingly Similar Threads
- [PATCH AUTOSEL 5.5 441/542] drm/nouveau/mmu: fix comptag memory leak
- [PATCH AUTOSEL 5.4 379/459] drm/nouveau/mmu: fix comptag memory leak
- drm/nouveau/core/memory: kmemleak 684 new suspected memory leaks
- [PATCH] drm/nouveau/imem/nv50: fix incorrect use of refcount API
- [PATCH] drm/nouveau/imem/nv50: fix incorrect use of refcount API