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>
This commit is contained in:
Thierry Reding 2014-11-04 16:17:55 +01:00
parent 71c38629d6
commit 1053f4dd82

View File

@ -118,6 +118,8 @@ static int tegra_drm_unload(struct drm_device *drm)
drm_mm_takedown(&tegra->mm);
}
kfree(tegra);
return 0;
}