Skip to content
Commit 95552191 authored by Tomi Valkeinen's avatar Tomi Valkeinen
Browse files

drm/omap: fix memory leak when FB init fails



omap_framebuffer_create() fails to unref all the gem objects if creating
the FB fails, leading to a memory leak.

Fix the loop so that it goes through all the reffed gem objects.

Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 0c697faf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment