diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2016-07-26 09:53:40 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-09-22 18:53:22 +0300 |
commit | 2df9dda07f56c285564ce97ca76a94e70a50df5e (patch) | |
tree | cffc4cff865a2217a5edf3ee06239fe3bb2b0f0c /sound/arm/pxa2xx-pcm-lib.c | |
parent | c0bf09d047e18e9948a431f7662b20777e540d80 (diff) | |
download | linux-2df9dda07f56c285564ce97ca76a94e70a50df5e.tar.xz |
[media] si2165: avoid division by zero
When si2165_init fails, the clk values in state are still at zero.
But the dvb-core ignores the return value of init will call tune
afterwards.
This will trigger a division by zero when tuning.
At least check for the variables to be non-zero before dividing.
This happened for a system with WinTV HVR-4400 PCIe-card after suspend-to-disk.
Do suspend-to-disk without accessing the DVB device before.
After wakeup try to tune.
si2165_init fails at checking the chip_mode and aborts.
Then si2165_set_if_freq_shift will fail with div-by-zero.
Signed-off-by: Matthias Schwarzott <zzam@gentoo.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'sound/arm/pxa2xx-pcm-lib.c')
0 files changed, 0 insertions, 0 deletions