]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
The parameter's origin type is long. On an i386 architecture, it can
authorhank <pyu@redhat.com>
Wed, 24 Aug 2011 23:46:14 +0000 (09:46 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 15 Sep 2011 06:21:14 +0000 (16:21 +1000)
commit61e76d3ecba54ece596b07d33e0965d2ffcad87a
tree5ea3fb6decbd858edc7f0aea6b94edf7864711c9
parent0ea23a31931d6d4e6939695a9df38853c5e0d7d8
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.

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