Re: [PATCH v5 13/19] drm: writeback: Fix leak of writeback job

2019-02-26 Thread Liviu Dudau
On Thu, Feb 21, 2019 at 12:32:06PM +0200, Laurent Pinchart wrote: > Writeback jobs are allocated when the WRITEBACK_FB_ID is set, and > deleted when the jobs complete. This results in both a memory leak of > the job and a leak of the framebuffer if the atomic commit returns > before the job is queu

Re: [PATCH v5 13/19] drm: writeback: Fix leak of writeback job

2019-02-21 Thread Brian Starkey
Hi, On Thu, Feb 21, 2019 at 12:32:06PM +0200, Laurent Pinchart wrote: > Writeback jobs are allocated when the WRITEBACK_FB_ID is set, and > deleted when the jobs complete. This results in both a memory leak of > the job and a leak of the framebuffer if the atomic commit returns > before the job is

[PATCH v5 13/19] drm: writeback: Fix leak of writeback job

2019-02-21 Thread Laurent Pinchart
Writeback jobs are allocated when the WRITEBACK_FB_ID is set, and deleted when the jobs complete. This results in both a memory leak of the job and a leak of the framebuffer if the atomic commit returns before the job is queued for processing, for instance if the atomic check fails or if the commit