1
0
Fork 0

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: 9e869063b0 ("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>
zero-sugar-mainline-defconfig
Tianjia Zhang 2020-08-02 19:15:36 +08:00 committed by Alex Deucher
parent cc9fc1b144
commit c35376137e
1 changed files with 1 additions and 2 deletions

View File

@ -8343,8 +8343,7 @@ static int dm_update_plane_state(struct dc *dc,
dm_old_plane_state->dc_state,
dm_state->context)) {
ret = EINVAL;
return ret;
return -EINVAL;
}