浏览代码

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 年之前
父节点
当前提交
606df33423
共有 1 个文件被更改,包括 1 次插入0 次删除
  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(&free_buf->node);
+	INIT_LIST_HEAD(&sde_crtc->ltm_buf_busy);
 	list_add_tail(&free_buf->node, &sde_crtc->ltm_buf_busy);
 
 	ltm_data = (struct drm_msm_ltm_stats_data *)