Skip to content
Snippets Groups Projects
Commit a54f8760 authored by Charan Teja Reddy's avatar Charan Teja Reddy Committed by Gerrit - the friendly Code Review server
Browse files

lrdp: iommu: check for invalid entries while page table parsing


Check for invalid entries, when extracting the pagetables from ramdump.

Change-Id: I35250c4c47af9046636dc135cda5f7a6f882cd69
Signed-off-by: default avatarCharan Teja Reddy <charante@codeaurora.org>
parent 1577c705
No related branches found
No related tags found
No related merge requests found
......@@ -284,6 +284,10 @@ def get_mapping_info(ramdump, pg_table, index):
def fl_entry(ramdump, fl_pte, skip_fl):
fl_pg_table_entry = ramdump.read_u64(fl_pte)
if fl_pg_table_entry is None:
return (0, 0)
sl_pte = fl_pg_table_entry & FLSL_BASE_MASK
if skip_fl == 1:
......
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