]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3379bbccca3b0dad4aaef6468f1fda8072c3a45a
treeb8cbafc1ddfbf64c00288a55542d41653f52900c
parentdad0db2f529593fef42dd35933c099f9eb32b24b
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