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:
00e9c7c
)
drm: omapdrm: gem: Fix GEM object destroy in error path
author
Laurent Pinchart
<
[email protected]
>
Mon, 14 Dec 2015 20:39:39 +0000
(22:39 +0200)
committer
Tomi Valkeinen
<
[email protected]
>
Thu, 31 Dec 2015 09:25:45 +0000
(11:25 +0200)
Use the omap_gem_free_object() function to destroy the GEM object in the
omap_gem_new_handle() error path instead of doing it manually (and
incorrectly).
Signed-off-by: Laurent Pinchart <
[email protected]
>
Signed-off-by: Tomi Valkeinen <
[email protected]
>
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 d9ce296eec6a6c2316d8433768c32277b5ed9096..b535fed491f5363e17cfc6364303d7a80847b63f 100644
(file)
--- a/
drivers/gpu/drm/omapdrm/omap_gem.c
+++ b/
drivers/gpu/drm/omapdrm/omap_gem.c
@@
-1452,8
+1452,7
@@
int omap_gem_new_handle(struct drm_device *dev, struct drm_file *file,
ret = drm_gem_handle_create(file, obj, handle);
if (ret) {
- drm_gem_object_release(obj);
- kfree(obj); /* TODO isn't there a dtor to call? just copying i915 */
+ omap_gem_free_object(obj);
return ret;
}