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>
Thu, 29 Apr 2021 04:04:27 +0000 (00:04 -0400)
commite0c16eb4b3610298a74ae5504c7f6939b12be991
treee6829c367e05e0a77e061b66b6d6ad9f1c6076fe
parent8c3dd61cfa05a65a7e1a8a028000fc95856156c4
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>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c