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

Skip to content
Commit e347c386 authored by Mitchel Humpherys's avatar Mitchel Humpherys Committed by Gerrit - the friendly Code Review server
Browse files

iommu: msm_iommu_sec: use dma_free_attrs to match dma_alloc_attrs



Currently we're using dma_free_coherent to free a DMA allocation that
was allocated with dma_alloc_attrs.  DMA allocation and free should
always use matching attributes.  Failure to do so could result in
instabilities.  Fix this by using dma_free_attrs.  Also fix an erroneous
comment regarding the dma_alloc_attrs piece.

Change-Id: I99fed0d27b14895a5a9099944a25ef9ee1072614
Suggested-by: default avatarJoseph Chang <joechang@qti.qualcomm.com>
Signed-off-by: default avatarMitchel Humpherys <mitchelh@codeaurora.org>
parent 2943afb1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment