Sfoglia il codice sorgente

Merge "disp: msm: dp: check for active panels ptr before cleanup"

qctecmdr 3 anni fa
parent
commit
b5da8ebb6a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      msm/dp/dp_display.c

+ 1 - 1
msm/dp/dp_display.c

@@ -436,7 +436,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};