Commit ec0d7abb authored by Gabe Teeger's avatar Gabe Teeger Committed by Alex Deucher

drm/amd/display: Fix Potential Null Dereference

[what & why]
System hang after s4 regression points to code change here.
Removing possible NULL dereference.

Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Reviewed-by: default avatarNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: default avatarGabe Teeger <gabe.teeger@amd.com>
Signed-off-by: default avatarAurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent a90e1dc2
...@@ -139,9 +139,9 @@ static void dcn35_disable_otg_wa(struct clk_mgr *clk_mgr_base, struct dc_state * ...@@ -139,9 +139,9 @@ static void dcn35_disable_otg_wa(struct clk_mgr *clk_mgr_base, struct dc_state *
old_pipe->stream != new_pipe->stream && old_pipe->stream != new_pipe->stream &&
old_pipe->stream_res.tg == new_pipe->stream_res.tg && old_pipe->stream_res.tg == new_pipe->stream_res.tg &&
new_pipe->stream->link_enc && !new_pipe->stream->dpms_off && new_pipe->stream->link_enc && !new_pipe->stream->dpms_off &&
new_pipe->stream->link->link_enc->funcs->is_dig_enabled && new_pipe->stream->link_enc->funcs->is_dig_enabled &&
new_pipe->stream->link->link_enc->funcs->is_dig_enabled( new_pipe->stream->link_enc->funcs->is_dig_enabled(
new_pipe->stream->link->link_enc) && new_pipe->stream->link_enc) &&
new_pipe->stream_res.stream_enc && new_pipe->stream_res.stream_enc &&
new_pipe->stream_res.stream_enc->funcs->is_fifo_enabled && new_pipe->stream_res.stream_enc->funcs->is_fifo_enabled &&
new_pipe->stream_res.stream_enc->funcs->is_fifo_enabled(new_pipe->stream_res.stream_enc); new_pipe->stream_res.stream_enc->funcs->is_fifo_enabled(new_pipe->stream_res.stream_enc);
......
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