aboutsummaryrefslogtreecommitdiff
path: root/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exec.c b/exec.c
index c556de047..d9e959d69 100644
--- a/exec.c
+++ b/exec.c
@@ -2557,7 +2557,7 @@ void cpu_physical_memory_rw(target_phys_addr_t addr, uint8_t *buf,
/* FIXME - should this return an error rather than just fail? */
return;
memcpy(buf, p, l);
- unlock_user(p, addr, l);
+ unlock_user(p, addr, 0);
}
len -= l;
buf += l;