Browse Source

disp: msm: sde: Init ltm_buf_busy list head before adding new node

Init ltm_buf_busy list head before adding new node to avoid
list_add corruption.

Change-Id: Ic90f82c929150640bc12d4f31cf7115879f92037
Signed-off-by: Ping Li <[email protected]>
Ping Li 5 years ago
parent
commit
606df33423
1 changed files with 1 additions and 0 deletions
  1. 1 0
      msm/sde/sde_color_processing.c

+ 1 - 0
msm/sde/sde_color_processing.c

@@ -3018,6 +3018,7 @@ static void sde_cp_ltm_hist_interrupt_cb(void *arg, int irq_idx)
 
 
 	list_del_init(&busy_buf->node);
 	list_del_init(&busy_buf->node);
 	list_del_init(&free_buf->node);
 	list_del_init(&free_buf->node);
+	INIT_LIST_HEAD(&sde_crtc->ltm_buf_busy);
 	list_add_tail(&free_buf->node, &sde_crtc->ltm_buf_busy);
 	list_add_tail(&free_buf->node, &sde_crtc->ltm_buf_busy);
 
 
 	ltm_data = (struct drm_msm_ltm_stats_data *)
 	ltm_data = (struct drm_msm_ltm_stats_data *)