Merge "msm: ADSPRPC: Use secure session device while freeing memory"

This commit is contained in:
Linux Build Service Account 2016-11-07 22:29:05 -08:00 committed by Gerrit - the friendly Code Review server
commit a1029ef3e5

View file

@ -490,7 +490,7 @@ static void fastrpc_mmap_free(struct fastrpc_mmap *map)
ion_free(fl->apps->client, map->handle); ion_free(fl->apps->client, map->handle);
if (sess->smmu.enabled) { if (sess->smmu.enabled) {
if (map->size || map->phys) if (map->size || map->phys)
msm_dma_unmap_sg(fl->sctx->dev, msm_dma_unmap_sg(sess->dev,
map->table->sgl, map->table->sgl,
map->table->nents, DMA_BIDIRECTIONAL, map->table->nents, DMA_BIDIRECTIONAL,
map->buf); map->buf);