OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3211215
)
linux-user: Fix incorrect use of host errno in do_ioctl_dm()
author
Peter Maydell
<peter.maydell@linaro.org>
Tue, 12 Jul 2016 12:02:14 +0000
(13:02 +0100)
committer
Riku Voipio
<riku.voipio@linaro.org>
Wed, 21 Sep 2016 11:27:07 +0000
(14:27 +0300)
do_ioctl_dm() should return target errno values, not host ones;
correct an accidental use of a host errno in an error path.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/syscall.c
patch
|
blob
|
history
diff --git
a/linux-user/syscall.c
b/linux-user/syscall.c
index
efcc17a
..
e286907
100644
(file)
--- a/
linux-user/syscall.c
+++ b/
linux-user/syscall.c
@@
-5001,7
+5001,7
@@
static abi_long do_ioctl_dm(const IOCTLEntry *ie, uint8_t *buf_temp, int fd,
guest_data = arg + host_dm->data_start;
if ((guest_data - arg) < 0) {
- ret = -EINVAL;
+ ret = -
TARGET_
EINVAL;
goto out;
}
guest_data_size = host_dm->data_size - host_dm->data_start;