diff --git a/msm/dp/dp_display.c b/msm/dp/dp_display.c index 3faeb1a102..7ee2fd2b33 100644 --- a/msm/dp/dp_display.c +++ b/msm/dp/dp_display.c @@ -403,7 +403,7 @@ static void dp_display_hdcp_register_streams(struct dp_display_private *dp) static void dp_display_hdcp_deregister_stream(struct dp_display_private *dp, enum dp_stream_id stream_id) { - if (dp->hdcp.ops->deregister_streams) { + if (dp->hdcp.ops->deregister_streams && dp->active_panels[stream_id]) { struct stream_info stream = {stream_id, dp->active_panels[stream_id]->vcpi};