Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 15ec2ca9 authored by Subhajit Paul's avatar Subhajit Paul Committed by Tomi Valkeinen
Browse files

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: default avatarSubhajit Paul <subhajit_paul@ti.com>
Signed-off-by: default avatarArchit Taneja <archit@ti.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent b841aedf
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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.. */