vm_page_fault(): Only put the address space, if we actually got one.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26774 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2008-08-04 02:46:07 +00:00
parent 1a617f516a
commit 39ec9b48bd

View File

@ -4149,6 +4149,7 @@ vm_page_fault(addr_t address, addr_t faultAddress, bool isWrite, bool isUser,
}
}
if (addressSpace != NULL)
vm_put_address_space(addressSpace);
return B_HANDLED_INTERRUPT;