aboutsummaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorAtsushi Nemoto <[email protected]>2009-04-03 01:01:21 +0900
committerRalf Baechle <[email protected]>2009-05-14 13:50:27 +0100
commit740ebe4a54fae1705705ec87ce511b16ffb50659 (patch)
treef560d2d8d01c6c85108ad01ae244d5e9a4dcee25 /net/unix/af_unix.c
parent4f29c057aa81c5440f06b716f768ba9f8a041fe9 (diff)
MIPS: TXx9: Fix possible overflow in clock calculations
Addition of -fwrapv option in 2.6.29 discloses possible overflow with signed arithmetics. For example, result of "a * 6 / 12" (int a = 400000000) is 200000000 without -fwrapv but -157913941 with -fwrapv. Change some variable to unsigned to avoid such overflows. Signed-off-by: Atsushi Nemoto <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions