Commit 1053f4dd authored by Thierry Reding's avatar Thierry Reding

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: default avatarThierry Reding <treding@nvidia.com>
parent 71c38629
......@@ -118,6 +118,8 @@ static int tegra_drm_unload(struct drm_device *drm)
drm_mm_takedown(&tegra->mm);
}
kfree(tegra);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment