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

Commit 33cfa8c7 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "qseecom: Check for case where listener service is not found"

parents 3a7ef7b4 0aa054de
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -651,6 +651,11 @@ static int __qseecom_process_incomplete_cmd(struct qseecom_dev_handle *data,
		}
		spin_unlock_irqrestore(&qseecom.registered_listener_list_lock,
				flags);

		if (ptr_svc == NULL) {
			pr_err("Listener Svc %d does not exist\n", lstnr);
			return -EINVAL;
		}
		if (ptr_svc->svc.listener_id != lstnr) {
			pr_warning("Service requested for does on exist\n");
			return -ERESTARTSYS;