diff options
author | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2024-10-15 13:14:11 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2024-10-18 11:43:03 +0300 |
commit | 576a307a7650bd544fbb24df801b9b7863b85e2f (patch) | |
tree | 378ce31735d3d4d71e75bf2c8cc50b2bbe5f9d47 /tools/perf/scripts/python/compaction-times.py | |
parent | 438d3085ba5b8b5bfa5290faa594e577f6ac9aa7 (diff) | |
download | linux-576a307a7650bd544fbb24df801b9b7863b85e2f.tar.xz |
media: cx24116: prevent overflows on SNR calculus
as reported by Coverity, if reading SNR registers fail, a negative
number will be returned, causing an underflow when reading SNR
registers.
Prevent that.
Fixes: 8953db793d5b ("V4L/DVB (9178): cx24116: Add module parameter to return SNR as ESNO.")
Cc: stable@vger.kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions