diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-07-22 10:11:47 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-07-22 10:11:47 -0700 |
commit | c57c3743784e08d8ceaaea928a8c84ad8b403aed (patch) | |
tree | e250cfd7f86979ed67e3bb5550f21799b5d82e55 /kernel/timer.c | |
parent | 5b26776bd9253931097a85dcb1b9da1bac554c02 (diff) | |
parent | 79ef2bb01445400def20c7993b27fbcad27ca95f (diff) | |
download | talos-obmc-linux-c57c3743784e08d8ceaaea928a8c84ad8b403aed.tar.gz talos-obmc-linux-c57c3743784e08d8ceaaea928a8c84ad8b403aed.zip |
Merge branch 'timers-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'timers-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
clocksource: Prevent NULL pointer dereference
timer: Avoid reading uninitialized data
Diffstat (limited to 'kernel/timer.c')
-rw-r--r-- | kernel/timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/timer.c b/kernel/timer.c index 0b36b9e5cc8b..a7f07d5a6241 100644 --- a/kernel/timer.c +++ b/kernel/timer.c @@ -714,7 +714,7 @@ int mod_timer(struct timer_list *timer, unsigned long expires) * networking code - if the timer is re-modified * to be the same thing then just return: */ - if (timer->expires == expires && timer_pending(timer)) + if (timer_pending(timer) && timer->expires == expires) return 1; return __mod_timer(timer, expires, false, TIMER_NOT_PINNED); |