diff options
author | Ian Moffett <ian@osmora.org> | 2024-05-06 23:30:05 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-05-06 23:31:09 -0400 |
commit | 853ca334332eb4312e30de0ff2c59411c35eb418 (patch) | |
tree | cd9be7f6bb05b59870986545dbc3fe3cc76ad24b /sys/vm | |
parent | 7984343abd6e3f7f2be45ac42de4e1eac1030330 (diff) |
kernel: vm_fault: Fix 'td' assignment
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_fault.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c index d1a3e29..219db91 100644 --- a/sys/vm/vm_fault.c +++ b/sys/vm/vm_fault.c @@ -55,7 +55,7 @@ static struct vm_mapping * vm_find_mapping(vaddr_t addr) { struct vm_mapping *mapping; - struct proc *td; + struct proc *td = this_td(); vm_mapq_t *mapq; mapping = vm_mapping_fetch(&td->mapspace, addr); @@ -63,7 +63,6 @@ vm_find_mapping(vaddr_t addr) return mapping; /* Need to search other maps */ - td = this_td(); for (size_t i = 0; i < MTAB_ENTRIES; ++i) { mapq = &td->mapspace.mtab[i]; mapping = vm_mapq_search(mapq, addr); |