aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSivapiriyanKumarasamy <[email protected]>2018-02-23 19:01:07 -0500
committerAlex Deucher <[email protected]>2018-03-14 15:08:42 -0500
commita7596f25db13b1f5a2f8a068d8e9a60a23e34451 (patch)
tree4c8315754a2ab4a9c514456ab4acbeb708d0102f
parent9aef1a31709076660f7d5f638ab5ecadea4ca856 (diff)
drm/amd/display: Varibright add null check
Add null check for stream update Signed-off-by: SivapiriyanKumarasamy <[email protected]> Reviewed-by: Krunoslav Kovac <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/display/dc/core/dc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c
index 40a65cb9ee23..e72fdb5697fc 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
@@ -1363,7 +1363,7 @@ static void commit_planes_for_stream(struct dc *dc,
dc->hwss.apply_ctx_for_surface(
dc, pipe_ctx->stream, stream_status->plane_count, context);
- if (stream_update->abm_level && pipe_ctx->stream_res.abm) {
+ if (stream_update && stream_update->abm_level && pipe_ctx->stream_res.abm) {
if (pipe_ctx->stream_res.tg->funcs->is_blanked) {
// if otg funcs defined check if blanked before programming
if (!pipe_ctx->stream_res.tg->funcs->is_blanked(pipe_ctx->stream_res.tg))