diff --git a/kernel/time/posix-timers.c b/kernel/time/posix-timers.c index b53a0b5625161327aaf7bff9e06c88ea2521d436..88517dcfe0ca249575411935a97e48e730723061 100644 --- a/kernel/time/posix-timers.c +++ b/kernel/time/posix-timers.c @@ -828,6 +828,8 @@ SYSCALL_DEFINE4(timer_settime, timer_t, timer_id, int, flags, if (!timespec64_valid(&new_spec64.it_interval) || !timespec64_valid(&new_spec64.it_value)) return -EINVAL; + if (rtn) + memset(rtn, 0, sizeof(*rtn)); retry: timr = lock_timer(timer_id, &flag); if (!timr)