From: Subhajit Paul subhajit_paul@ti.com
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 --- drivers/gpu/drm/omapdrm/omap_gem.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/omapdrm/omap_gem.c b/drivers/gpu/drm/omapdrm/omap_gem.c index 5aec3e8..3199e3f 100644 --- a/drivers/gpu/drm/omapdrm/omap_gem.c +++ b/drivers/gpu/drm/omapdrm/omap_gem.c @@ -1229,6 +1229,8 @@ int omap_gem_op_async(struct drm_gem_object *obj, enum omap_gem_op op, }
spin_unlock(&sync_lock); + + kfree(waiter); }
/* no waiting.. */