projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.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
|
blame
|
history
diff --git
a/kernel/time/alarmtimer.c
b/kernel/time/alarmtimer.c
index 1dee3f62a6a7d77837a10382b6e106bc0b85f65d..0e9263f6fd097c62d40600e246015b92e34de934 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 =