Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 35c58f92 authored by Haritha Chintalapati's avatar Haritha Chintalapati Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: reqmgr: Add checks before reporting the error" into camera-kernel.lnx.4.0

parents c0bc0756 e9fb6cfd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1632,7 +1632,7 @@ static int __cam_req_mgr_process_req(struct cam_req_mgr_core_link *link,
	struct cam_req_mgr_slot             *slot = NULL;
	struct cam_req_mgr_req_queue        *in_q;
	struct cam_req_mgr_core_session     *session;
	struct cam_req_mgr_connected_device *dev;
	struct cam_req_mgr_connected_device *dev = NULL;
	struct cam_req_mgr_core_link        *tmp_link = NULL;
	uint32_t                             max_retry = 0;

@@ -1758,7 +1758,7 @@ static int __cam_req_mgr_process_req(struct cam_req_mgr_core_link *link,
		if (link->max_delay == 1)
			max_retry++;

		if (!link->wq_congestion) {
		if (!link->wq_congestion && dev) {
			link->retry_cnt++;
			if (link->retry_cnt == max_retry) {
				CAM_DBG(CAM_CRM,