mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 11:09:29 +07:00
drm/nouveau/mmu: fix comptag memory leak
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
90e2e96ea3
commit
35e4909b6a
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user