summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/tegra
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-11-04 16:17:55 +0100
committerThierry Reding <treding@nvidia.com>2014-11-13 16:18:32 +0100
commit1053f4dd82338ca82de46a23a11d51d7455b02c6 (patch)
tree68bc2d432810e00b071db7074012aa77e80fb84a /drivers/gpu/drm/tegra
parent71c38629d6bd4be74009fc73946255254477c77e (diff)
drm/tegra: Plug memory leak
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>
Diffstat (limited to 'drivers/gpu/drm/tegra')
-rw-r--r--drivers/gpu/drm/tegra/drm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c
index 6c9df794b3be..e549afeece1f 100644
--- 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;
}