git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
timer: Prevent overflow in apply_slack
[pandora-kernel.git]
/
kernel
/
timer.c
diff --git
a/kernel/timer.c
b/kernel/timer.c
index
f8b05a4
..
349953e
100644
(file)
--- a/
kernel/timer.c
+++ b/
kernel/timer.c
@@
-769,7
+769,7
@@
unsigned long apply_slack(struct timer_list *timer, unsigned long expires)
bit = find_last_bit(&mask, BITS_PER_LONG);
- mask = (1 << bit) - 1;
+ mask = (1
UL
<< bit) - 1;
expires_limit = expires_limit & ~(mask);