evl: fix timerfd read

It should read uint64_t now.

Tested: Jorge Ramirez-Ortiz <jorge@foundries.io>
This commit is contained in:
Wim Taymans 2023-08-09 12:45:18 +02:00
parent ea0e92c5d9
commit f5d1d7e683

View file

@ -249,10 +249,8 @@ static int impl_timerfd_gettime(void *object,
}
static int impl_timerfd_read(void *object, int fd, uint64_t *expirations)
{
uint32_t ticks;
if (oob_read(fd, &ticks, sizeof(ticks)) != sizeof(ticks))
if (oob_read(fd, expirations, sizeof(uint64_t)) != sizeof(uint64_t))
return -errno;
*expirations = ticks;
return 0;
}