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

Commit 4446dfc4 authored by Linux Build Service Account's avatar Linux Build Service Account
Browse files

Merge 24d1ef86 on remote branch

Change-Id: Ia5bfeba231e9fa44cdddb071acd2a369b7eb50f1
parents 1b266d72 24d1ef86
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -2371,18 +2371,20 @@ static int venus_hfi_session_end(void *sess)
	struct venus_hfi_device *device = &venus_hfi_dev;
	int rc = 0;

	if (!__is_session_valid(device, session, __func__))
		return -EINVAL;

	mutex_lock(&device->lock);
	if (!__is_session_valid(device, session, __func__)) {
		rc = -EINVAL;
		goto exit;
	}

	if (msm_vidc_fw_coverage) {
		if (__sys_set_coverage(device, msm_vidc_fw_coverage,
				session->sid))
			s_vpr_e(session->sid, "Fw_coverage msg ON failed\n");
	}
	rc = __send_session_cmd(session, HFI_CMD_SYS_SESSION_END);
exit:
	mutex_unlock(&device->lock);

	return rc;
}