Skip to content

Commit b669507

Browse files
Alex Hungalexdeucher
authored andcommitted
drm/amd/display: Check dce_hwseq before dereferencing it
[WHAT] hws was checked for null earlier in dce110_blank_stream, indicating hws can be null, and should be checked whenever it is used. Cc: Mario Limonciello <[email protected]> Cc: Alex Deucher <[email protected]> Reviewed-by: Aurabindo Pillai <[email protected]> Signed-off-by: Alex Hung <[email protected]> Signed-off-by: Aurabindo Pillai <[email protected]> Signed-off-by: Alex Deucher <[email protected]> (cherry picked from commit 79db436) Cc: [email protected]
1 parent 46e1519 commit b669507

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1225,7 +1225,7 @@ void dce110_blank_stream(struct pipe_ctx *pipe_ctx)
12251225
return;
12261226

12271227
if (link->local_sink && link->local_sink->sink_signal == SIGNAL_TYPE_EDP) {
1228-
if (!link->skip_implict_edp_power_control)
1228+
if (!link->skip_implict_edp_power_control && hws)
12291229
hws->funcs.edp_backlight_control(link, false);
12301230
link->dc->hwss.set_abm_immediate_disable(pipe_ctx);
12311231
}

0 commit comments

Comments
 (0)