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

Commit a6bde9ef authored by Alok Pandey's avatar Alok Pandey Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: crm: increasing mutex lock window



Serializing the complete call to avoid list corruption.
Before complete if flush gets called second time, it will
reinitialize wait queue.

Change-Id: Ia4f5865d52da26e5bd18218b83d19724412aa1f5
Signed-off-by: default avatarAlok Pandey <akumarpa@codeaurora.org>
parent 83f55155
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1442,9 +1442,9 @@ int cam_req_mgr_process_flush_req(void *priv, void *data)
		if (device->ops && device->ops->flush_req)
			rc = device->ops->flush_req(&flush_req);
	}
	complete(&link->workq_comp);
	mutex_unlock(&link->req.lock);

	complete(&link->workq_comp);
end:
	return rc;
}