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

This commit is contained in:
Camera Software Integration 2020-02-04 15:14:58 -08:00 • committed by Gerrit - the friendly Code Review server
commit 5f52e784c4

View file

@ -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);