OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
971c90b
)
alarmtimers: Memset itimerspec passed into alarm_timer_get
author
John Stultz
<john.stultz@linaro.org>
Thu, 4 Aug 2011 14:51:56 +0000
(07:51 -0700)
committer
John Stultz
<john.stultz@linaro.org>
Wed, 10 Aug 2011 14:10:09 +0000
(07:10 -0700)
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>
kernel/time/alarmtimer.c
patch
|
blob
|
history
diff --git
a/kernel/time/alarmtimer.c
b/kernel/time/alarmtimer.c
index
1dee3f6
..
0e9263f
100644
(file)
--- a/
kernel/time/alarmtimer.c
+++ b/
kernel/time/alarmtimer.c
@@
-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 =