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

Commit 22955502 authored by Sathish Ambley's avatar Sathish Ambley
Browse files

msm: ADSPRPC: Use secure session device while freeing memory



Make sure that the secure session device is used while freeing the
buffer that was allocated from secure memory.

Change-Id: I07802c21c661fe18fb2fda70980b04f646408d7d
Signed-off-by: default avatarSathish Ambley <sathishambley@codeaurora.org>
parent 85d7e134
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -490,7 +490,7 @@ static void fastrpc_mmap_free(struct fastrpc_mmap *map)
			ion_free(fl->apps->client, map->handle);
		if (sess->smmu.enabled) {
			if (map->size || map->phys)
				msm_dma_unmap_sg(fl->sctx->dev,
				msm_dma_unmap_sg(sess->dev,
					map->table->sgl,
					map->table->nents, DMA_BIDIRECTIONAL,
					map->buf);