]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Fix wrong return value in dm_update_plane_state()
authorTianjia Zhang <tianjia.zhang@linux.alibaba.com>
Sun, 2 Aug 2020 11:15:36 +0000 (19:15 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Aug 2020 19:42:54 +0000 (15:42 -0400)
commit3ffcdcf3cefbf566ca0f7e977af65795f35dc6ec
tree3b19ba448c5ed415ae6c8b9565bee87f3a9102d9
parent2e7507f591ae9f038ccc4541ffd4fbdf093e7f06
drm/amd/display: Fix wrong return value in dm_update_plane_state()

On an error exit path, a negative error code should be returned
instead of a positive return value.

Fixes: 4af6690ca0428 ("drm/amd/display: Move iteration out of dm_update_planes")
Cc: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c