]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amd/display: Add NULL test for 'timing generator' in 'dcn21_set_pipe()'
authorSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Wed, 31 Jan 2024 03:19:41 +0000 (08:49 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 7 Feb 2024 15:00:29 +0000 (10:00 -0500)
commitfb5a3d037082b52a5c52be647c3936ca7651d7d5
tree6137cf105de23ad91181a26d74c187c36fabc849
parent886571d217d7cc4e0f96f68b21238e3e25694e74
drm/amd/display: Add NULL test for 'timing generator' in 'dcn21_set_pipe()'

In "u32 otg_inst = pipe_ctx->stream_res.tg->inst;"
pipe_ctx->stream_res.tg could be NULL, it is relying on the caller to
ensure the tg is not NULL.

Fixes: 474ac4a875ca ("drm/amd/display: Implement some asic specific abm call backs.")
Cc: Yongqiang Sun <yongqiang.sun@amd.com>
Cc: Anthony Koo <Anthony.Koo@amd.com>
Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Cc: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/hwss/dcn21/dcn21_hwseq.c