From 1053f4dd82338ca82de46a23a11d51d7455b02c6 Mon Sep 17 00:00:00 2001 From: Thierry Reding Date: Tue, 4 Nov 2014 16:17:55 +0100 Subject: 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 --- drivers/gpu/drm/tegra/drm.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/gpu/drm/tegra') 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; } -- cgit v1.2.3