]> git.karo-electronics.de Git - karo-tx-linux.git/commit
The parameter's origin type is long. On an i386 architecture, it can
authorhank <pyu@redhat.com>
Tue, 26 Jul 2011 10:14:35 +0000 (20:14 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 29 Jul 2011 05:46:03 +0000 (15:46 +1000)
commit4eec09e7b122ba61973ee4ea53f288438b85018f
treedaf4cf51e58f87bfef2ccc065971163a75756242
parent23129ccc7835dcf7186fc7f1fc68b9f4fe8eae6e
The parameter's origin type is long.  On an i386 architecture, it can
easily be larger than 0x80000000, causing this function to convert it to a
sign-extended u64 type.  Change the type to unsigned long so we get the
correct result.

Signed-off-by: hank <pyu@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: John Stultz <john.stultz@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/time.c