Commit ea7802f630d356acaf66b3c0b28c00a945fc35dc
1 parent
971c90bfa2
Exists in
master
and in
4 other branches
alarmtimers: Memset itimerspec passed into alarm_timer_get
Following common_timer_get, zero out the itimerspec passed in. CC: Thomas Gleixner <tglx@linutronix.de> CC: stable@kernel.org Signed-off-by: John Stultz <john.stultz@linaro.org>
Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff
kernel/time/alarmtimer.c
... | ... | @@ -441,6 +441,8 @@ |
441 | 441 | static void alarm_timer_get(struct k_itimer *timr, |
442 | 442 | struct itimerspec *cur_setting) |
443 | 443 | { |
444 | + memset(cur_setting, 0, sizeof(struct itimerspec)); | |
445 | + | |
444 | 446 | cur_setting->it_interval = |
445 | 447 | ktime_to_timespec(timr->it.alarmtimer.period); |
446 | 448 | cur_setting->it_value = |