Skip to content

Commit

Permalink
linux-user: erroneous fd_trans_unregister call
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
scweng authored and vivier committed Sep 11, 2019
1 parent 2041df4 commit 895e2ef
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion linux-user/syscall.c
Expand Up @@ -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
Expand Down

0 comments on commit 895e2ef

Please sign in to comment.