From: Thierry Reding Date: Tue, 4 Nov 2014 15:17:55 +0000 (+0100) Subject: drm/tegra: Plug memory leak X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1053f4dd82338ca82de46a23a11d51d7455b02c6;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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; }