projects
/
openwrt
/
staging
/
blogic.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 3691982452a9e6a2a5567540d3e0698b0e0d212d..f83aa12ee5c6bd403c468cd959693aadc4d7ceae 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);
}