瀏覽代碼

Merge "msm: camera: isp: Update unlink handling to avoid race" into camera-kernel.lnx.4.0

Camera Software Integration 5 年之前
父節點
當前提交
5f52e784c4
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      drivers/cam_req_mgr/cam_req_mgr_core.c

+ 3 - 2
drivers/cam_req_mgr/cam_req_mgr_core.c

@@ -3179,12 +3179,13 @@ static int __cam_req_mgr_unlink(struct cam_req_mgr_core_link *link)
 	}
 
 	mutex_lock(&link->lock);
-	/* Destroy timer of link */
-	crm_timer_exit(&link->watchdog);
 
 	/* Destroy workq of link */
 	cam_req_mgr_workq_destroy(&link->workq);
 
+	/* Destroy timer of link */
+	crm_timer_exit(&link->watchdog);
+
 	/* Cleanup request tables and unlink devices */
 	__cam_req_mgr_destroy_link_info(link);