drm/omap: Fix memory leak in omap_gem_op_async
authorSubhajit Paul <subhajit_paul@ti.com>
Fri, 11 Apr 2014 07:23:30 +0000 (12:53 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 15 Apr 2014 10:35:27 +0000 (13:35 +0300)
commit15ec2ca964d7a52e7e0a452fe0f9c409d2f3eec6
treecd97faade7e110ec53ebc640a42a0d8009146bcc
parentb841aedfcfd543d836c856bfde5a17c51cab6b26
drm/omap: Fix memory leak in omap_gem_op_async

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