Browse Source

Merge "msm: camera: reqmgr: Correct condition check" into camera-kernel.lnx.5.0

Camera Software Integration 4 years ago
parent
commit
13670c580a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/cam_req_mgr/cam_req_mgr_core.c

+ 1 - 1
drivers/cam_req_mgr/cam_req_mgr_core.c

@@ -5063,7 +5063,7 @@ int cam_req_mgr_flush_requests(
 	rc = cam_common_wait_for_completion_timeout(
 	rc = cam_common_wait_for_completion_timeout(
 		&link->workq_comp,
 		&link->workq_comp,
 		msecs_to_jiffies(CAM_REQ_MGR_SCHED_REQ_TIMEOUT));
 		msecs_to_jiffies(CAM_REQ_MGR_SCHED_REQ_TIMEOUT));
-	if (rc)
+	if (!rc)
 		CAM_WARN(CAM_CRM, "Flush call timeout for session_hdl %u link_hdl %u type: %d",
 		CAM_WARN(CAM_CRM, "Flush call timeout for session_hdl %u link_hdl %u type: %d",
 			flush_info->link_hdl, flush_info->session_hdl,
 			flush_info->link_hdl, flush_info->session_hdl,
 			flush_info->flush_type);
 			flush_info->flush_type);