]> git.proxmox.com Git - mirror_qemu.git/commitdiff
linux-user: erroneous fd_trans_unregister call
authorShu-Chun Weng <scw@google.com>
Mon, 19 Aug 2019 18:53:48 +0000 (11:53 -0700)
committerLaurent Vivier <laurent@vivier.eu>
Wed, 11 Sep 2019 06:45:57 +0000 (08:45 +0200)
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>
linux-user/syscall.c

index 8b41a03901d497aea17d2093ab51a1d727a1b8cd..b42f59a32c8db139bf94535daefdca754063bf00 100644 (file)
@@ -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