Skip to content

Commit 35e4909

Browse files
author
Ben Skeggs
committed
drm/nouveau/mmu: fix comptag memory leak
Signed-off-by: Ben Skeggs <[email protected]>
1 parent 90e2e96 commit 35e4909

File tree

1 file changed

+1
-1
lines changed
  • drivers/gpu/drm/nouveau/nvkm/core

1 file changed

+1
-1
lines changed

drivers/gpu/drm/nouveau/nvkm/core/memory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ nvkm_memory_tags_get(struct nvkm_memory *memory, struct nvkm_device *device,
9191
}
9292

9393
refcount_set(&tags->refcount, 1);
94+
*ptags = memory->tags = tags;
9495
mutex_unlock(&fb->subdev.mutex);
95-
*ptags = tags;
9696
return 0;
9797
}
9898

0 commit comments

Comments
 (0)