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

Commit cd2bb50f authored by Wyes Karny's avatar Wyes Karny
Browse files

msm: camera: reqmgr: Add null check for error notify function



Null check is added for error notify function in request manager.

CRs-Fixed: 2688303
Change-Id: I70237c51c8fa9f3e0af66c4e2d3c3eed5fe78bd9
Signed-off-by: default avatarWyes Karny <wkarny@codeaurora.org>
parent fc75671c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -224,6 +224,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;