]> git.baikalelectronics.ru Git - kernel.git/commit
kernel/sys.c: compat sysinfo syscall: fix undefined behavior
authorScotty Bauer <sbauer@eng.utah.edu>
Thu, 9 Oct 2014 22:30:26 +0000 (15:30 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 10 Oct 2014 02:26:04 +0000 (22:26 -0400)
commitc2cbe19194ad1e94edf4526c307841dce5b2f47e
treed923df01089d7b360f226c19ac7230c216a45a4b
parent1aa7bdc0a734b27bc3f5db0b3061ecc6d1b11229
kernel/sys.c: compat sysinfo syscall: fix undefined behavior

Fix undefined behavior and compiler warning by replacing right shift 32
with upper_32_bits macro

Signed-off-by: Scotty Bauer <sbauer@eng.utah.edu>
Cc: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/sys.c