Fix an error case in vm_map_wire(): unwiring of an entry during cleanup
after a user wire error fails when the entry is already system wired. Reported by: tegge
This commit is contained in:
parent
2be7d43928
commit
f6116791a2
@ -1782,8 +1782,8 @@ done:
|
|||||||
*/
|
*/
|
||||||
entry->wired_count = 0;
|
entry->wired_count = 0;
|
||||||
} else {
|
} else {
|
||||||
if (!user_wire || (entry->wired_count == 1 &&
|
if (!user_wire ||
|
||||||
(entry->eflags & MAP_ENTRY_USER_WIRED) == 0))
|
(entry->eflags & MAP_ENTRY_USER_WIRED) == 0)
|
||||||
entry->wired_count--;
|
entry->wired_count--;
|
||||||
if (entry->wired_count == 0) {
|
if (entry->wired_count == 0) {
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user