Re: [PATCH] drm/amd/amdgpu: fix refcount leak

2021-05-17 Thread Alex Deucher
On Mon, May 17, 2021 at 4:47 AM Christian König wrote: > > Am 17.05.21 um 10:26 schrieb Jingwen Chen: > > [Why] > > the gem object rfb->base.obj[0] is get according to num_planes > > in amdgpufb_create, but is not put according to num_planes > > > > [How] > > put rfb->base.obj[0] in

Re: [PATCH] drm/amd/amdgpu: fix refcount leak

2021-05-17 Thread Christian König
Am 17.05.21 um 10:26 schrieb Jingwen Chen: [Why] the gem object rfb->base.obj[0] is get according to num_planes in amdgpufb_create, but is not put according to num_planes [How] put rfb->base.obj[0] in amdgpu_fbdev_destroy according to num_planes Signed-off-by: Jingwen Chen Looks sane to me,

[PATCH] drm/amd/amdgpu: fix refcount leak

2021-05-17 Thread Jingwen Chen
[Why] the gem object rfb->base.obj[0] is get according to num_planes in amdgpufb_create, but is not put according to num_planes [How] put rfb->base.obj[0] in amdgpu_fbdev_destroy according to num_planes Signed-off-by: Jingwen Chen --- drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c | 3 +++ 1 file