aboutsummaryrefslogtreecommitdiff
path: root/linux-user/syscall.c
diff options
context:
space:
mode:
authorShu-Chun Weng <scw@google.com>2019-08-19 11:53:48 -0700
committerLaurent Vivier <laurent@vivier.eu>2019-09-11 08:45:57 +0200
commit895e2ef521ae0eef2fdfcec8f2108d9ee3303a81 (patch)
tree2e8219ab3bff52c9fc14a64d7a82c62ecb3ce3dd /linux-user/syscall.c
parent2041df4a050cec1efbba4f87e2bb9c40e7fd6cdf (diff)
downloadqemu-895e2ef521ae0eef2fdfcec8f2108d9ee3303a81.zip
qemu-895e2ef521ae0eef2fdfcec8f2108d9ee3303a81.tar.gz
qemu-895e2ef521ae0eef2fdfcec8f2108d9ee3303a81.tar.bz2
linux-user: erroneous fd_trans_unregister call
timer_getoverrun returns the "overrun count" for the timer, which is not a file descriptor and thus should not call fd_trans_unregister on it. Signed-off-by: Shu-Chun Weng <scw@google.com> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20190819185348.221825-1-scw@google.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r--linux-user/syscall.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 8b41a03..b42f59a 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -11847,7 +11847,6 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1,
timer_t htimer = g_posix_timers[timerid];
ret = get_errno(timer_getoverrun(htimer));
}
- fd_trans_unregister(ret);
return ret;
}
#endif