]> git.karo-electronics.de Git - karo-tx-linux.git/commit
timekeeping: Cast raw_interval to u64 to avoid shift overflow
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 9 Oct 2012 07:18:23 +0000 (10:18 +0300)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 9 Oct 2012 19:27:14 +0000 (21:27 +0200)
commit5b3900cd409466c0070b234d941650685ad0c791
tree1a381a23d3d06cfc8941ee2e5dd400ba6cea6f21
parent26cff4e2aa4d666dc6a120ea34336b5057e3e187
timekeeping: Cast raw_interval to u64 to avoid shift overflow

We fixed a bunch of integer overflows in timekeeping code during the 3.6
cycle.  I did an audit based on that and found this potential overflow.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: John Stultz <johnstul@us.ibm.com>
Link: http://lkml.kernel.org/r/20121009071823.GA19159@elgon.mountain
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org
kernel/time/timekeeping.c