drm/amdgpu: use the unlocked drm_gem_object_put
authorEmil Velikov <emil.velikov@collabora.com>
Fri, 15 May 2020 09:50:47 +0000 (10:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Aug 2020 06:23:43 +0000 (08:23 +0200)
commit6478b20d0364d70f32381123d1f717eaa486ec75
tree15b6b24dd51acae2578789cb72ebc80962155ee0
parent26cfc53dbf713ef98b6fc5d977f67dac5088ffde
drm/amdgpu: use the unlocked drm_gem_object_put

[ Upstream commit 1a87f67a66de4ad0c0d79fd86b6c5273143387c3 ]

The driver does not hold struct_mutex, thus using the locked version of
the helper is incorrect.

Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: amd-gfx@lists.freedesktop.org
Fixes: a39414716ca0 ("drm/amdgpu: add independent DMA-buf import v9")
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Christian König <christian.koenig@amd.com>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20200515095118.2743122-8-emil.l.velikov@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c