mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
drm/amd/display: Fix wrong return value in dm_update_plane_state()
[ Upstream commitc35376137e] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0d234d1135
commit
0a5630dee3
@@ -6984,8 +6984,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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user