Unverified Commit 49ac4302 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!12264 drm/amd/display: Avoid overflow from uint32_t to uint8_t

parents 710d9571 85880bc5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -141,7 +141,7 @@ static bool dmub_abm_set_pipe(struct abm *abm, uint32_t otg_inst, uint32_t optio
{
	union dmub_rb_cmd cmd;
	struct dc_context *dc = abm->ctx;
	uint32_t ramping_boundary = 0xFFFF;
	uint8_t ramping_boundary = 0xFF;

	cmd.abm_set_pipe.header.type = DMUB_CMD__ABM;
	cmd.abm_set_pipe.header.sub_type = DMUB_CMD__ABM_SET_PIPE;