Browse Source

securemsm-kernel: smmu-proxy: Return error on map failure

Return the failure code from the remote VM when smmu_proxy_map()
fails.

Change-Id: I7a7a8a5930275ce13e2bfea38365b878fba534bd
Signed-off-by: Chris Goldsworthy <[email protected]>
Chris Goldsworthy 2 years ago
parent
commit
d71f8c3401
1 changed files with 1 additions and 1 deletions
  1. 1 1
      smmu-proxy/qti-smmu-proxy-pvm.c

+ 1 - 1
smmu-proxy/qti-smmu-proxy-pvm.c

@@ -167,7 +167,7 @@ int smmu_proxy_map(struct device *client_dev, struct sg_table *proxy_iova,
 	resp = buf;
 
 	if (resp->hdr.ret) {
-		proxy_iova = ERR_PTR(resp->hdr.ret);
+		ret = resp->hdr.ret;
 		pr_err_ratelimited("%s: Map call failed on remote VM, rc: %d\n", __func__,
 				   resp->hdr.ret);
 		goto free_buf;