Skip to content

Commit 15ec2ca

Browse files
Subhajit Paultomba
authored andcommitted
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>
1 parent b841aed commit 15ec2ca

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/gpu/drm/omapdrm/omap_gem.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,6 +1226,8 @@ int omap_gem_op_async(struct drm_gem_object *obj, enum omap_gem_op op,
12261226
}
12271227

12281228
spin_unlock(&sync_lock);
1229+
1230+
kfree(waiter);
12291231
}
12301232

12311233
/* no waiting.. */

0 commit comments

Comments
 (0)