Commit a6a80c32 authored by Mostafa Saleh's avatar Mostafa Saleh Committed by Treehugger Robot
Browse files

ANDROID: iommu/io-pgtable-arm: Fix map check for IO_PGTABLE_QUIRK_UNMAP_INVAL



With IO_PGTABLE_QUIRK_UNMAP_INVAL all pte != 0 checks are replaced with
valid checks as ptes can be non zero while invalid.
Add missing check in __arm_lpae_map() which was causing use after free.

Bug: 357781595
Bug: 384432312
Change-Id: I7d07fb10907c79eb269ae8ca0f3949621a01fa64
Signed-off-by: default avatarMostafa Saleh <smostafa@google.com>
parent 4d6b74ea
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment