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

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

Merge "scm_qcpe: validate hab_recv() return value for retry"

parents 22b90bcb 010a0cd6
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -473,11 +473,15 @@ static int scm_call_qcpe(u32 fn_id, struct scm_desc *desc)
		goto err_ret;
	}

	size_bytes = sizeof(smc_params);

	memset(&smc_params, 0x0, sizeof(smc_params));

	do {
		size_bytes = sizeof(smc_params);
		ret = habmm_socket_recv(handle, &smc_params, &size_bytes, 0,
			HABMM_SOCKET_RECV_FLAGS_UNINTERRUPTIBLE);
	} while (-EINTR == ret);

	if (ret) {
		pr_err("habmm_socket_recv failed, ret= 0x%x\n", ret);
		goto err_ret;