summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libpager/pager-memcpy.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libpager/pager-memcpy.c b/libpager/pager-memcpy.c
index 0a5a4b7b..e5f4cdac 100644
--- a/libpager/pager-memcpy.c
+++ b/libpager/pager-memcpy.c
@@ -170,8 +170,7 @@ pager_memcpy (struct pager *pager, memory_object_t memobj,
void fault (int signo, long int sigcode, struct sigcontext *scp)
{
assert (scp->sc_error == EKERN_MEMORY_ERROR);
- err = pager_get_error (pager,
- (sigcode - window + offset) / vm_page_size);
+ err = pager_get_error (pager, sigcode - window + offset);
n -= sigcode - window;
vm_deallocate (mach_task_self (), window, window_size);
longjmp (buf, 1);