drm/amdgpu: fix kgd_hqd_load failing to update shadow_wptr
authorAndres Rodriguez <andresx7@gmail.com>
Thu, 13 Apr 2017 17:55:41 +0000 (13:55 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 31 May 2017 20:48:49 +0000 (16:48 -0400)
commit8ae0d2b8a03dc44d72dd3cccb2a78ec89518bebf
tree8d20dace7ea9fab016950c9fa28668f7f9722d32
parent97bf47b21d593c92d8c89be159afccb5d6562279
drm/amdgpu: fix kgd_hqd_load failing to update shadow_wptr

The return value from copy_form_user is 0 for the success case.

Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Andres Rodriguez <andresx7@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c