Commit c3537613 authored by Tianjia Zhang's avatar Tianjia Zhang Committed by Alex Deucher

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: 9e869063 ("drm/amd/display: Move iteration out of dm_update_planes")
Cc: Leo Li <sunpeng.li@amd.com>
Signed-off-by: default avatarTianjia Zhang <tianjia.zhang@linux.alibaba.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent cc9fc1b1
...@@ -8343,8 +8343,7 @@ static int dm_update_plane_state(struct dc *dc, ...@@ -8343,8 +8343,7 @@ static int dm_update_plane_state(struct dc *dc,
dm_old_plane_state->dc_state, dm_old_plane_state->dc_state,
dm_state->context)) { dm_state->context)) {
ret = EINVAL; return -EINVAL;
return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment