projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d3d51b
)
drm/radeon/kms: fix memory leak
author
Jiri Slaby
<jslaby@suse.cz>
Wed, 6 Jan 2010 16:39:31 +0000
(17:39 +0100)
committer
Dave Airlie
<airlied@redhat.com>
Thu, 7 Jan 2010 03:38:59 +0000
(13:38 +1000)
Stanse found a memory leak in radeon_master_create. master_priv is not
freed/assigned on all paths. Fix that.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_cp.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/radeon/radeon_cp.c
b/drivers/gpu/drm/radeon/radeon_cp.c
index 0b2f9c2ad2c16a38814286e848135894f17e12c4..06123ba31d31ff564ea4224a2f0de56e87cdbf53 100644
(file)
--- a/
drivers/gpu/drm/radeon/radeon_cp.c
+++ b/
drivers/gpu/drm/radeon/radeon_cp.c
@@
-2145,6
+2145,7
@@
int radeon_master_create(struct drm_device *dev, struct drm_master *master)
&master_priv->sarea);
if (ret) {
DRM_ERROR("SAREA setup failed\n");
+ kfree(master_priv);
return ret;
}
master_priv->sarea_priv = master_priv->sarea->handle + sizeof(struct drm_sarea);