projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed22e68
)
drm/nouveau/platform: release IOMMU's mm upon exit
author
Alexandre Courbot
<acourbot@nvidia.com>
Fri, 20 Mar 2015 10:41:04 +0000
(19:41 +0900)
committer
Ben Skeggs
<bskeggs@redhat.com>
Tue, 14 Apr 2015 07:00:51 +0000
(17:00 +1000)
nvkm_mm_fini() was not called when exiting the driver, resulting in a
memory leak. Fix this.
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_platform.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nouveau_platform.c
b/drivers/gpu/drm/nouveau/nouveau_platform.c
index
3691982
..
f83aa12
100644
(file)
--- a/
drivers/gpu/drm/nouveau/nouveau_platform.c
+++ b/
drivers/gpu/drm/nouveau/nouveau_platform.c
@@
-152,6
+152,7
@@
static void nouveau_platform_remove_iommu(struct device *dev,
struct nouveau_platform_gpu *gpu)
{
if (gpu->iommu.domain) {
+ nvkm_mm_fini(&gpu->iommu._mm);
iommu_detach_device(gpu->iommu.domain, dev);
iommu_domain_free(gpu->iommu.domain);
}