OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71c3862
)
drm/tegra: Plug memory leak
author
Thierry Reding
<treding@nvidia.com>
Tue, 4 Nov 2014 15:17:55 +0000
(16:17 +0100)
committer
Thierry Reding
<treding@nvidia.com>
Thu, 13 Nov 2014 15:18:32 +0000
(16:18 +0100)
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>
drivers/gpu/drm/tegra/drm.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/tegra/drm.c
b/drivers/gpu/drm/tegra/drm.c
index
6c9df79
..
e549afe
100644
(file)
--- 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;
}