commit | 1053f4dd82338ca82de46a23a11d51d7455b02c6 | [log] [tgz] |
---|---|---|
author | Thierry Reding <treding@nvidia.com> | Tue Nov 04 16:17:55 2014 +0100 |
committer | Thierry Reding <treding@nvidia.com> | Thu Nov 13 16:18:32 2014 +0100 |
tree | 68bc2d432810e00b071db7074012aa77e80fb84a | |
parent | 71c38629d6bd4be74009fc73946255254477c77e [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>
diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c index 6c9df79..e549afe 100644 --- a/drivers/gpu/drm/tegra/drm.c +++ b/drivers/gpu/drm/tegra/drm.c
@@ -118,6 +118,8 @@ drm_mm_takedown(&tegra->mm); } + kfree(tegra); + return 0; }