linux/sound
Anssi Hannula c89c7e94bb ASoC: fsl_spdif: Fix integer overflow when calculating divisors
The calculation code does
u64 = (u32 - u32) * 100000;

The 64 bits are of no help here as the type is casted only after the
multiplication, and therefore the result may overflow, possibly causing
inoptimal or wrong clock setup in an unfortunate case (the maximum
result value of the first substraction is currently 47999).

Fix the code to cast before multiplication.

Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi>
Acked-by: Nicolin Chen <Guangyu.Chen@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
2014-06-09 21:00:42 +01:00
..
aoa
arm ASoC: pxa: remove mach header dependency 2014-05-20 23:14:49 +01:00
atmel
core
drivers
firewire
i2c
isa
mips
oss
parisc
pci ALSA: hda - hdmi: Set converter channel count even without sink 2014-05-05 16:28:10 +02:00
pcmcia
ppc
sh
soc ASoC: fsl_spdif: Fix integer overflow when calculating divisors 2014-06-09 21:00:42 +01:00
sparc
spi
synth
usb
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c
sound_firmware.c