]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - linux-user/flatload.c
Linux user memory access API change (initial patch by Thayne Harbaugh)
[thirdparty/qemu.git] / linux-user / flatload.c
index 86b77f98895198508e1d8b0037d68029f5d847c1..7a76c0fcda32f905dff06c808a38bd6dcfb4caae 100644 (file)
@@ -108,7 +108,7 @@ int target_pread(int fd, abi_ulong ptr, abi_ulong len,
     void *buf;
     int ret;
 
-    buf = lock_user(ptr, len, 0);
+    buf = lock_user(VERIFY_WRITE, ptr, len, 0);
     ret = pread(fd, buf, len, offset);
     unlock_user(buf, ptr, len);
     return ret;