projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b841aed
)
drm/omap: Fix memory leak in omap_gem_op_async
author
Subhajit Paul
<subhajit_paul@ti.com>
Fri, 11 Apr 2014 07:23:30 +0000
(12:53 +0530)
committer
Tomi Valkeinen
<tomi.valkeinen@ti.com>
Tue, 15 Apr 2014 10:35:27 +0000
(13:35 +0300)
In omap_gem_op_async(), if a waiter is not added to the wait list, it needs to
be free'd in the function itself.
Make sure we free the waiter for this case.
Signed-off-by: Subhajit Paul <subhajit_paul@ti.com>
Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_gem.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/omapdrm/omap_gem.c
b/drivers/gpu/drm/omapdrm/omap_gem.c
index 70798b9fe63576b18234ebfed860d0ff9f45240d..9a68e9a284381ecfb12dd9fd7922feef19f7c6c6 100644
(file)
--- a/
drivers/gpu/drm/omapdrm/omap_gem.c
+++ b/
drivers/gpu/drm/omapdrm/omap_gem.c
@@
-1226,6
+1226,8
@@
int omap_gem_op_async(struct drm_gem_object *obj, enum omap_gem_op op,
}
spin_unlock(&sync_lock);
+
+ kfree(waiter);
}
/* no waiting.. */