提交 1053f4dd 编写于 作者: T 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: NThierry Reding <treding@nvidia.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册