dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/arch/mips/txx9/generic
Atsushi Nemoto 740ebe4a54 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 <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2009-05-14 13:50:27 +01:00
..
7segled.c MIPS: TXx9: 7 segment LED support 2008-10-27 16:18:27 +00:00
Makefile MIPS: TXx9: 7 segment LED support 2008-10-27 16:18:27 +00:00
irq_tx3927.c [MIPS] TXx9: Make tx3927-specific code more independent 2008-07-30 21:54:39 +01:00
irq_tx4927.c MIPS: TXx9: Raise priority of interrupts for errors, timers, SIO 2008-10-11 16:18:43 +01:00
irq_tx4938.c MIPS: TXx9: Raise priority of interrupts for errors, timers, SIO 2008-10-11 16:18:43 +01:00
irq_tx4939.c MIPS: TXx9: Add TX4939 SoC support 2008-10-11 16:18:49 +01:00
mem_tx4927.c [MIPS] TXx9: Cleanups for 64-bit support 2008-07-20 14:38:21 +01:00
pci.c [MIPS] TXx9: Add some pci options 2008-07-30 21:54:38 +01:00
setup.c [MTD] [NAND] TXx9: add NDFMC support 2009-03-20 18:07:39 +00:00
setup_tx3927.c MIPS: TXx9: Add mtd support 2008-10-11 16:18:42 +01:00
setup_tx4927.c MIPS: TXx9: Fix possible overflow in clock calculations 2009-05-14 13:50:27 +01:00
setup_tx4938.c MIPS: TXx9: Fix possible overflow in clock calculations 2009-05-14 13:50:27 +01:00
setup_tx4939.c MIPS: TXx9: Fix possible overflow in clock calculations 2009-05-14 13:50:27 +01:00
smsc_fdc37m81x.c [MIPS] TXx9: Random cleanup 2008-07-30 21:54:40 +01:00
spi_eeprom.c MIPS: TXx9: Make spi_eeprom.c more generic 2008-10-11 16:18:44 +01:00