Changeset 560b81c in mainline for kernel/generic/src/ipc/ops/pagein.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/generic/src/ipc/ops/pagein.c

    r97b8ca9 r560b81c  
    5353                bool found = page_mapping_find(AS, IPC_GET_ARG1(answer->data),
    5454                    false, &pte);
    55                 if (found) {
     55                if (found & PTE_PRESENT(&pte)) {
    5656                        frame = PTE_GET_FRAME(&pte);
    5757                        pfn_t pfn = ADDR2PFN(frame);
Note: See TracChangeset for help on using the changeset viewer.