Changeset 2a2fbc8 in mainline for kernel/generic/src/ipc/ops/pagein.c


Ignore:
Timestamp:
2016-09-01T17:05:13Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
42d08592
Parents:
f126c87 (diff), fb63c06 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge from lp:~jakub/helenos/pt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ipc/ops/pagein.c

    rf126c87 r2a2fbc8  
    4747{
    4848        if (!IPC_GET_RETVAL(answer->data)) {
    49                 pte_t *pte;
     49                pte_t pte;
    5050                uintptr_t frame;
    5151
    5252                page_table_lock(AS, true);
    53                 pte = page_mapping_find(AS, IPC_GET_ARG1(answer->data), false);
    54                 if (pte) {
    55                         frame = PTE_GET_FRAME(pte);
     53                bool found = page_mapping_find(AS, IPC_GET_ARG1(answer->data),
     54                    false, &pte);
     55                if (found) {
     56                        frame = PTE_GET_FRAME(&pte);
    5657                        pfn_t pfn = ADDR2PFN(frame);
    5758                        if (find_zone(pfn, 1, 0) != (size_t) -1) {
Note: See TracChangeset for help on using the changeset viewer.