mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
Linux user memory access API change (initial patch by Thayne Harbaugh)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3583 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
44f8625d23
commit
579a97f7ff
14 changed files with 973 additions and 624 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue