Commit 35e4909b authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/mmu: fix comptag memory leak

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 90e2e96e
...@@ -91,8 +91,8 @@ nvkm_memory_tags_get(struct nvkm_memory *memory, struct nvkm_device *device, ...@@ -91,8 +91,8 @@ nvkm_memory_tags_get(struct nvkm_memory *memory, struct nvkm_device *device,
} }
refcount_set(&tags->refcount, 1); refcount_set(&tags->refcount, 1);
*ptags = memory->tags = tags;
mutex_unlock(&fb->subdev.mutex); mutex_unlock(&fb->subdev.mutex);
*ptags = tags;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment