diff options
| author | Rolf Eike Beer <eike-kernel@sf-tec.de> | 2009-09-22 16:44:03 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-23 07:39:30 -0700 |
| commit | a49c59c042c63b432307c1bbf7dac5a104c786e6 (patch) | |
| tree | 443f9fab6d8907dec07a6c83fee2812c4bf43245 /kernel/sys.c | |
| parent | fix compat_sys_utimensat() (diff) | |
| download | linux-a49c59c042c63b432307c1bbf7dac5a104c786e6.tar.gz linux-a49c59c042c63b432307c1bbf7dac5a104c786e6.zip | |
Make sure the value in abs() does not get truncated if it is greater than 2^32
abs() will truncate the input if is it outside the 2^32 range. Fix that
by assuming `long' input.
This might generate worse code in the common case.
Signed-off-by: Rolf Eike Beer <eike-kernel@sf-tec.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/sys.c')
0 files changed, 0 insertions, 0 deletions
