Changeset 560b81c in mainline for kernel/arch/ia64/src/mm/tlb.c


Ignore:
Timestamp:
2016-09-17T15:09:40Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ae66564
Parents:
97b8ca9
Message:

Make sure to test the present bit of the found PTE

By design, page_mapping_find() can return true and a copy of a PTE
which is not present. It is therefore necessary to test the found PTE
by PTE_PRESENT() macro.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia64/src/mm/tlb.c

    r97b8ca9 r560b81c  
    492492        bool found = page_mapping_find(AS, va, true, &t);
    493493        if (found) {
     494                ASSERT(t.p);
     495
    494496                /*
    495497                 * The mapping was found in software page hash table.
     
    603605        bool found = page_mapping_find(as, va, true, &t);
    604606        if (found) {
     607                ASSERT(t.p);
     608
    605609                /*
    606610                 * The mapping was found in the software page hash table.
Note: See TracChangeset for help on using the changeset viewer.