]> git.itanic.dy.fi Git - linux-stable/commit
drm/amd/amdgpu: fix refcount leak
authorJingwen Chen <Jingwen.Chen2@amd.com>
Mon, 17 May 2021 08:16:10 +0000 (16:16 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 19 May 2021 22:04:44 +0000 (18:04 -0400)
commitfa7e6abc75f3d491bc561734312d065dc9dc2a77
treedb15e40efd6e8bc4e96171a57559c4703f7b5c2a
parent080039273b126eeb0185a61c045893a25dbc046e
drm/amd/amdgpu: fix refcount leak

[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 <Jingwen.Chen2@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c