]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Switch error code when bo pin fails. (v3)
authorAndrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Sun, 18 Dec 2016 21:16:53 +0000 (16:16 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 27 Jan 2017 16:13:31 +0000 (11:13 -0500)
commit65e9e4adcf84c04a44d394639fbf9e5235bba912
tree12e1d228277af8b051a3f349c20ccf04f4909a32
parent57a55ec48212a9d5b6610e6462d235470c498c3d
drm/amdgpu: Switch error code when bo pin fails. (v3)

Switching to -ENOMEM resolves a hang in case the driver
uses this function in atomic code path.

v2: Update commit message.
v3:
Remove forcing -EINVAL in case of amdgpu_bo_pin fail
since there is no apparent reason for not just passing
through the the return value.

Signed-off-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by Harry Wentland <harry.wentland@amd.com>
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