diff options
author | 2006-02-03 03:04:33 -0800 | |
---|---|---|
committer | 2006-02-03 08:32:08 -0800 | |
commit | f0c00257d63463fa9d692e632fae037d6c0e67b0 (patch) | |
tree | 94ca16b28d70eb96155974909560cced8a3cf383 /kernel/signal.c | |
parent | [PATCH] quota: remove unused sync_dquots_dev() (diff) | |
download | wireguard-linux-f0c00257d63463fa9d692e632fae037d6c0e67b0.tar.xz wireguard-linux-f0c00257d63463fa9d692e632fae037d6c0e67b0.zip |
[PATCH] lib: Fix bug in int_sqrt() for 64 bit longs
The implementation of int_sqrt() assumes that longs have 32 bits. On
systems that have 64 bit longs this will result in gross errors when the
argument to the function is greater than 2^32 - 1 on such systems. I doubt
whether any such use is currently made of int_sqrt() but the attached patch
fixes the problem anyway.
Signed-off-by: Peter Williams <pwil3058@bigpond.com.au>
Cc: Dave Jones <davej@codemonkey.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/signal.c')
0 files changed, 0 insertions, 0 deletions