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

Commit 107eddb1 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "qseecom: Check error when allocating coherent buffer"

parents 6aaa5e31 12b15678
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -4360,6 +4360,11 @@ static int __qseecom_send_modfd_cmd(struct qseecom_dev_handle *data,
	/* Allocate kernel buffer for request and response*/
	ret = __qseecom_alloc_coherent_buf(req.cmd_req_len + req.resp_len,
					&va, &pa);
	if (ret) {
		pr_err("Failed to allocate coherent buf, ret %d\n", ret);
		return ret;
	}

	req.cmd_req_buf = va;
	send_cmd_req.cmd_req_buf = (void *)pa;