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

Commit 60d46e2e authored by Camera Software Integration's avatar Camera Software Integration Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: reqmgr: Add null check for error notify function" into camera-kernel.lnx.1.0

parents c2412f3e cd2bb50f
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -225,6 +225,12 @@ static int __cam_req_mgr_notify_error_on_link(
	struct cam_req_mgr_message       msg;
	int rc = 0, pd;

	if (!link || !dev) {
		CAM_ERR(CAM_CRM, "Invalid Arguments link: 0x%x dev: 0x%x!",
			link, dev);
		return -EINVAL;
	}

	session = (struct cam_req_mgr_core_session *)link->parent;

	pd = dev->dev_info.p_delay;