Browse Source

drm/amd/display: Check we got a stream in update_info_frame

Signed-off-by: Hersen Wu <hersenxs.wu@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Hersen Wu 8 years ago
parent
commit
86e2e1bee0
1 changed files with 5 additions and 0 deletions
  1. 5 0
      drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c

+ 5 - 0
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c

@@ -837,6 +837,11 @@ static enum dc_status bios_parser_crtc_source_select(
 
 void dce110_update_info_frame(struct pipe_ctx *pipe_ctx)
 {
+	ASSERT(pipe_ctx->stream);
+
+	if (pipe_ctx->stream_enc == NULL)
+		return;  /* this is not root pipe */
+
 	if (dc_is_hdmi_signal(pipe_ctx->stream->signal))
 		pipe_ctx->stream_enc->funcs->update_hdmi_info_packets(
 			pipe_ctx->stream_enc,