Re: [PATCH 2/2] drm: plug memory leak on drm_setup() failure

2019-01-16 Thread Daniel Vetter
On Wed, Jan 16, 2019 at 11:40:41AM +, Emil Velikov wrote: > On 2019/01/14, Daniel Vetter wrote: > > On Mon, Jan 14, 2019 at 08:44:10AM +, Emil Velikov wrote: > > > From: Emil Velikov > > > > > > Currently we fail to free and detach the drm_file when drm_setup() fails. > > > Use the

Re: [PATCH 2/2] drm: plug memory leak on drm_setup() failure

2019-01-16 Thread Emil Velikov
On 2019/01/14, Daniel Vetter wrote: > On Mon, Jan 14, 2019 at 08:44:10AM +, Emil Velikov wrote: > > From: Emil Velikov > > > > Currently we fail to free and detach the drm_file when drm_setup() fails. > > Use the drm_close_helper to do address that. > > > > Signed-off-by: Emil Velikov > >

Re: [PATCH 2/2] drm: plug memory leak on drm_setup() failure

2019-01-14 Thread Daniel Vetter
On Mon, Jan 14, 2019 at 08:44:10AM +, Emil Velikov wrote: > From: Emil Velikov > > Currently we fail to free and detach the drm_file when drm_setup() fails. > Use the drm_close_helper to do address that. > > Signed-off-by: Emil Velikov > --- > drivers/gpu/drm/drm_file.c | 4 +++- > 1 file

[PATCH 2/2] drm: plug memory leak on drm_setup() failure

2019-01-14 Thread Emil Velikov
From: Emil Velikov Currently we fail to free and detach the drm_file when drm_setup() fails. Use the drm_close_helper to do address that. Signed-off-by: Emil Velikov --- drivers/gpu/drm/drm_file.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git