diff options
author | Richard Braun <rbraun@sceen.net> | 2014-06-19 23:49:03 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2014-06-19 23:49:03 +0200 |
commit | fe9f0c025f00a628ba6e33035f216c2bf4054f46 (patch) | |
tree | f2a3195ea950d87ae27f4864390e14d9f9372bc2 /kern/kernel.c | |
parent | 133ba945cc068580200900fa19079d44ee7c4825 (diff) |
vm/vm_kmem: fix page allocation error handling
Although not yet clearly stated since it's not yet decided whether it will
remain the normal behaviour, the pmap functions assume physical mappings
to be valid on removal or protection update. But the kernel virtual memory
allocation function vm_kmem_alloc would merely call vm_kmem_free if a page
couldn't be allocated, resulting on the unconditional removal of the
underlying physical mappings of the whole range, including addresses for
which no mapping was created.
Diffstat (limited to 'kern/kernel.c')
0 files changed, 0 insertions, 0 deletions