All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] linux-user: erroneous fd_trans_unregister call
@ 2019-08-19 18:53 Shu-Chun Weng via Qemu-devel
  2019-08-19 19:06 ` no-reply
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Shu-Chun Weng via Qemu-devel @ 2019-08-19 18:53 UTC (permalink / raw)
  To: Laurent Vivier; +Cc: Riku Voipio, qemu-devel, Shu-Chun Weng

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>
---
 linux-user/syscall.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 8367cb138d..012d79f8c1 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -11846,7 +11846,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
-- 
2.23.0.rc1.153.gdeed80330f-goog



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-08-23 16:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-19 18:53 [Qemu-devel] [PATCH] linux-user: erroneous fd_trans_unregister call Shu-Chun Weng via Qemu-devel
2019-08-19 19:06 ` no-reply
2019-08-19 19:32 ` Laurent Vivier
2019-08-19 19:55 ` no-reply
2019-08-23 16:28 ` Laurent Vivier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.