qemu-e2k/hw
Laurent Vivier a2c5eaf7a9 ppc: Remove a potential overflow in muldiv64()
The coccinelle script:
scripts/coccinelle/overflow_muldiv64.cocci
gives us a list of potential overflows in muldiv64()
(the two first parameters are 64bit values).

This patch fixes one, as the fix seems obvious:

replace muldiv64(a, b, c) by muldiv64(b, a, c)
as "a" and "b" are 64bit values but a <= NANOSECONDS_PER_SECOND.
(10^9 -> 30bit value).

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2016-06-07 18:02:49 +03:00
..
9pfs 9p: switch back to readdir() 2016-06-06 11:52:34 +02:00
acpi acpi: make bios_linker_loader_add_checksum() API offset based 2016-06-07 15:39:27 +03:00
alpha
arm acpi: make bios_linker_loader_add_checksum() API offset based 2016-06-07 15:39:27 +03:00
audio replace muldiv64(a, b, c) by (uint64_t)a * b / c 2016-06-07 18:02:49 +03:00
block dma-helpers: change interface to byte-based 2016-05-25 19:04:11 +02:00
bt bt: rewrite csrhci_write to avoid out-of-bounds writes 2016-05-29 09:11:11 +02:00
char hw/char: QOM'ify xilinx_uartlite model 2016-06-06 16:59:32 +01:00
core hw/ptimer: Introduce ptimer_get_limit 2016-06-06 16:59:31 +01:00
cpu
cris hw/char: QOM'ify etraxfs_ser.c 2016-05-29 09:11:10 +02:00
display virtio-gpu: add live migration support 2016-06-06 09:04:34 +02:00
dma
gpio
i2c i2c: add aspeed i2c controller 2016-06-06 16:59:29 +01:00
i386 acpi: make bios_linker_loader_add_checksum() API offset based 2016-06-07 15:39:27 +03:00
ide macio: use DMA memory interface for non-block ATAPI transfers 2016-06-07 10:17:45 +10:00
input
intc hw/intc/gic: RAZ/WI non-sec access to sec interrupts 2016-06-06 16:59:29 +01:00
ipack
ipmi hw/ipmi: fix spelling 2016-06-07 18:02:48 +03:00
isa pc: use AcpiDeviceIfClass.send_event to issue GPE events 2016-06-07 15:36:54 +03:00
lm32 hw/char: QOM'ify milkymist-uart.c 2016-05-29 09:11:10 +02:00
m68k
mem pc-dimm: introduce realize callback 2016-06-07 15:39:28 +03:00
microblaze hw/char: QOM'ify xilinx_uartlite model 2016-06-06 16:59:32 +01:00
mips
misc dbdma: use DMA memory interface for memory accesses 2016-06-07 10:17:45 +10:00
moxie
net e1000e: Fix build with gcc 4.6.3 and ust tracing 2016-06-06 09:42:54 +01:00
nvram vl: Replace DT_NOGRAPHIC with machine option 2016-05-20 14:28:54 -03:00
openrisc
pci pcie: Introduce function for DSN capability creation 2016-06-02 10:42:26 +08:00
pci-bridge
pci-host
pcmcia
ppc ppc: Remove a potential overflow in muldiv64() 2016-06-07 18:02:49 +03:00
s390x s390x/virtio-ccw: fix spelling 2016-06-07 18:02:48 +03:00
scsi scsi-disk: fix reads from scsi-disk devices 2016-06-06 13:23:41 +01:00
sd
sh4
smbios
sparc vl: Replace DT_NOGRAPHIC with machine option 2016-05-20 14:28:54 -03:00
sparc64
ssi
timer The only 64bit parameter of muldiv64() is the first one. 2016-06-07 18:02:49 +03:00
tpm
tricore
unicore32
usb remove useless muldiv64() 2016-06-07 18:02:49 +03:00
vfio vfio: Check that IOMMU MR translates to system address space 2016-05-26 11:12:09 -06:00
virtio virtio: move bi-endian target support to a single location 2016-06-07 15:39:28 +03:00
watchdog nmi: remove x86 specific nmi handling 2016-05-23 16:53:46 +02:00
xen xen: write information about supported backends 2016-05-23 13:30:03 +02:00
xenpv xen: add pvUSB backend 2016-05-23 13:30:03 +02:00
xtensa replace muldiv64(a, b, c) by (uint64_t)a * b / c 2016-06-07 18:02:49 +03:00
Makefile.objs