Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F133102742
D20850.id59410.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D20850.id59410.diff
View Options
Index: vm_map.c
===================================================================
--- vm_map.c
+++ vm_map.c
@@ -2867,6 +2867,7 @@
}
last_timestamp = map->timestamp;
entry = first_entry;
+ rv = KERN_SUCCESS;
while (entry->start < end) {
if (entry->eflags & MAP_ENTRY_IN_TRANSITION) {
/*
@@ -2902,7 +2903,7 @@
}
end = saved_start;
rv = KERN_INVALID_ADDRESS;
- goto done;
+ break;
}
}
if (entry == first_entry)
@@ -2933,7 +2934,7 @@
(entry->end < end && entry->next->start > entry->end)) {
end = entry->end;
rv = KERN_INVALID_ADDRESS;
- goto done;
+ break;
}
/*
* If system unwiring, require that the entry is system wired.
@@ -2942,12 +2943,10 @@
vm_map_entry_system_wired_count(entry) == 0) {
end = entry->end;
rv = KERN_INVALID_ARGUMENT;
- goto done;
+ break;
}
entry = entry->next;
}
- rv = KERN_SUCCESS;
-done:
need_wakeup = false;
if (first_entry == NULL &&
!vm_map_lookup_entry(map, start, &first_entry)) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 24, 12:14 AM (7 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24109080
Default Alt Text
D20850.id59410.diff (1 KB)
Attached To
Mode
D20850: remove gotos from vm_map_unwire
Attached
Detach File
Event Timeline
Log In to Comment