drivers/amd/pm: check the return value of amdgpu_bo_kmap
authorLi Zhong <floridsleeves@gmail.com>
Thu, 22 Sep 2022 04:17:56 +0000 (21:17 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Sep 2022 13:41:42 +0000 (09:41 -0400)
commit629c30db7c6812fe82d2dcc0110c9e994a831182
tree376693896c7e699ffb78def89d7dea3a8d006065
parentbb66ecbf122cc5ca52c569f0f84b5d1b2c00f6b9
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.

Reviewed-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Li Zhong <floridsleeves@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c