diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c index d72689d8a799..eafb666b5340 100644 --- a/sys/amd64/amd64/trap.c +++ b/sys/amd64/amd64/trap.c @@ -886,13 +886,10 @@ int trapwrite(addr) ++p->p_lock; PROC_UNLOCK(p); - if (vm_map_growstack(p, va) != KERN_SUCCESS) - rv = KERN_FAILURE; - else - /* - * fault the data page - */ - rv = vm_fault(&vm->vm_map, va, VM_PROT_WRITE, VM_FAULT_DIRTY); + /* + * fault the data page + */ + rv = vm_fault(&vm->vm_map, va, VM_PROT_WRITE, VM_FAULT_DIRTY); PROC_LOCK(p); --p->p_lock; diff --git a/sys/i386/i386/trap.c b/sys/i386/i386/trap.c index d72689d8a799..eafb666b5340 100644 --- a/sys/i386/i386/trap.c +++ b/sys/i386/i386/trap.c @@ -886,13 +886,10 @@ int trapwrite(addr) ++p->p_lock; PROC_UNLOCK(p); - if (vm_map_growstack(p, va) != KERN_SUCCESS) - rv = KERN_FAILURE; - else - /* - * fault the data page - */ - rv = vm_fault(&vm->vm_map, va, VM_PROT_WRITE, VM_FAULT_DIRTY); + /* + * fault the data page + */ + rv = vm_fault(&vm->vm_map, va, VM_PROT_WRITE, VM_FAULT_DIRTY); PROC_LOCK(p); --p->p_lock;