Re: [PATCH] drm/omap: fix memory leak when FB init fails

2017-08-07 Thread Tomi Valkeinen
On 07/08/17 14:29, Laurent Pinchart wrote: > Hi Tomi, > > Thank you for the patch. > > On Friday 04 Aug 2017 12:24:10 Tomi Valkeinen wrote: >> 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

Re: [PATCH] drm/omap: fix memory leak when FB init fails

2017-08-07 Thread Laurent Pinchart
Hi Tomi, Thank you for the patch. On Friday 04 Aug 2017 12:24:10 Tomi Valkeinen wrote: > 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: