drivers/amd/pm: check the return value of amdgpu_bo_kmap
authorLi Zhong <floridsleeves@gmail.com>
Sat, 24 Sep 2022 22:19:39 +0000 (15:19 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Oct 2022 15:57:29 +0000 (11:57 -0400)
commit8abbc4f768ddc5c2190ab8966e529cec42b4b2d4
treeb8cbafc1ddfbf64c00288a55542d41653f52900c
parentd37f379ad04dcc21ebd1d2380c3bc979d54f7c46
drivers/amd/pm: check the return value of amdgpu_bo_kmap

amdgpu_bo_kmap() returns error when fails to map buffer object. Add the
error check and propagate the error.

Signed-off-by: Li Zhong <floridsleeves@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/legacy-dpm/kv_dpm.c