summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2016-11-07 22:29:05 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2016-11-07 22:29:05 -0800
commita1029ef3e548c902ae6ebf5fe404ba303fb4a48f (patch)
treed5380770b2c7c6c3076df583e16d686c2345c000
parenta42da00388e66bef606463ac504d9f076ee3aaba (diff)
parent22955502470349cf001b7a8580f7781e59ecd58a (diff)
Merge "msm: ADSPRPC: Use secure session device while freeing memory"
-rw-r--r--drivers/char/adsprpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/adsprpc.c b/drivers/char/adsprpc.c
index ef8aaac6e0a2..7767086df849 100644
--- a/drivers/char/adsprpc.c
+++ b/drivers/char/adsprpc.c
@@ -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);