linux-user: Cast validity checks on g_posix_timers range
authorAlexander Graf <agraf@suse.de>
Fri, 22 Aug 2014 09:28:52 +0000 (11:28 +0200)
committerChanho Park <parkch98@gmail.com>
Tue, 9 Sep 2014 02:32:53 +0000 (11:32 +0900)
commitf27f7ce25831dd6dba803b60592c04684738ab8b
tree4bee6a337829def2ec8c6687cec04e6fe0b6103b
parent5b87cb5ba43364907a791a4ba9f1496a17df4380
linux-user: Cast validity checks on g_posix_timers range

We check whether the passed in counter value is negative on all calls
that involve g_posix_timers. However, we also check check for negativity
of that value after casting it - at which point it couldn't possibly be
negative anymore.

Cast the check to int16_t. Maybe this is correct. Maybe the check should
get removed completely.

Signed-off-by: Alexander Graf <agraf@suse.de>
linux-user/syscall.c