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

Skip to content
Commit 5d4eb4a7 authored by qqzhou's avatar qqzhou
Browse files

arm: dma-mapping: set proper bits for mapping



Set the size of bitmap area properly to ensure the proper iova address
to be returned by the bitmap_() API's through alloc_iova(). The current
implementation causes the bitmap index search out of bounds of a page
which can lead to the randomn corruption issues, and also causes wrong
iova free in free_iova() which can lead to map twice issue.

Fixes: I7cdeecca599 (arm: dma-mapping: Fix broken iommu attach and detach)
Change-Id: I5f82c424f9cda32ddc7e3b9b4e9ceff36bc55d80
Signed-off-by: default avatarQingqing Zhou <qqzhou@codeaurora.org>
parent 9b0f7eab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment