From: Thierry Reding Date: Tue, 4 Nov 2014 15:17:55 +0000 (+0100) Subject: drm/tegra: Plug memory leak X-Git-Tag: firefly_0821_release~176^2~2672^2~61^2~4 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1053f4dd82338ca82de46a23a11d51d7455b02c6;p=firefly-linux-kernel-4.4.55.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; }