From: Shu-Chun Weng Date: Mon, 19 Aug 2019 18:53:48 +0000 (-0700) Subject: linux-user: erroneous fd_trans_unregister call X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=895e2ef521ae0eef2fdfcec8f2108d9ee3303a81;p=qemu.git 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 Reviewed-by: Laurent Vivier Message-Id: <20190819185348.221825-1-scw@google.com> Signed-off-by: Laurent Vivier --- diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 8b41a03901..b42f59a32c 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