amdgpu: fix GEM obj leak in amdgpu_display_user_framebuffer_create
authorSimon Ser <contact@emersion.fr>
Wed, 21 Apr 2021 09:16:35 +0000 (11:16 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 10 May 2021 22:06:42 +0000 (18:06 -0400)
commitb44cdca7fd792c6b6203fd33a3030bdc43dfaee6
treeff452487b4b1c557001b25714f4e325f409a3423
parent5760dcb953ee8fe0706b67498b6ca599d7f49111
amdgpu: fix GEM obj leak in amdgpu_display_user_framebuffer_create

This error code-path is missing a drm_gem_object_put call. Other
error code-paths are fine.

Signed-off-by: Simon Ser <contact@emersion.fr>
Fixes: 1769152ac64b ("drm/amdgpu: Fail fb creation from imported dma-bufs. (v2)")
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Harry Wentland <hwentlan@amd.com>
Cc: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Cc: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c