diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-01-10 07:20:39 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-02-16 20:23:05 +0100 |
commit | 7a401e25f0a5909abf3f3e4fc7518b173cc5328f (patch) | |
tree | 9e5a14f6d2a78dfdc3b70ef4319e962e2a0bc0d6 /kernel/async.c | |
parent | ad91b2e392be4339e09eefd8479675b4232ddfa1 (diff) |
media: ts2020: avoid integer overflows on 32 bit machines
commit 81742be14b6a90c9fd0ff6eb4218bdf696ad8e46 upstream.
Before this patch, when compiled for arm32, the signal strength
were reported as:
Lock (0x1f) Signal= 4294908.66dBm C/N= 12.79dB
Because of a 32 bit integer overflow. After it, it is properly
reported as:
Lock (0x1f) Signal= -58.64dBm C/N= 12.79dB
Fixes: 0f91c9d6bab9 ("[media] TS2020: Calculate tuner gain correctly")
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/async.c')
0 files changed, 0 insertions, 0 deletions