projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71c3862
)
drm/tegra: Plug memory leak
author
Thierry Reding
<treding@nvidia.com>
Tue, 4 Nov 2014 15:17:55 +0000
(16:17 +0100)
committer
Thierry Reding
<treding@nvidia.com>
Thu, 13 Nov 2014 15:18:32 +0000
(16:18 +0100)
Free the DRM device-private memory upon driver unload to make sure the
memory doesn't leak.
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/drm.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/tegra/drm.c
b/drivers/gpu/drm/tegra/drm.c
index 6c9df794b3be42dde9a2df18ffd263a1b2763eab..e549afeece1ff12c899afc9f21dd52ff5e3e64ff 100644
(file)
--- a/
drivers/gpu/drm/tegra/drm.c
+++ b/
drivers/gpu/drm/tegra/drm.c
@@
-118,6
+118,8
@@
static int tegra_drm_unload(struct drm_device *drm)
drm_mm_takedown(&tegra->mm);
}
+ kfree(tegra);
+
return 0;
}