mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 06:25:52 +02:00
alarmtimers: Memset itimerspec passed into alarm_timer_get
commit ea7802f630 upstream.
Following common_timer_get, zero out the itimerspec passed in.
CC: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
26cf1a7ba1
commit
0898dd1603
|
|
@ -441,6 +441,8 @@ static int alarm_timer_create(struct k_itimer *new_timer)
|
|||
static void alarm_timer_get(struct k_itimer *timr,
|
||||
struct itimerspec *cur_setting)
|
||||
{
|
||||
memset(cur_setting, 0, sizeof(struct itimerspec));
|
||||
|
||||
cur_setting->it_interval =
|
||||
ktime_to_timespec(timr->it.alarmtimer.period);
|
||||
cur_setting->it_value =
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user