diff options
author | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2024-10-16 12:03:26 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2024-10-18 11:43:03 +0300 |
commit | eba6a8619d2b988f9b3a34e6b552a34fa2057d61 (patch) | |
tree | 6a1403dd7da7d2372f9cacd7461426320b933e1b /tools/perf/scripts/python/compaction-times.py | |
parent | 2d861977e7314f00bf27d0db17c11ff5e85e609a (diff) | |
download | linux-eba6a8619d2b988f9b3a34e6b552a34fa2057d61.tar.xz |
media: cec: extron-da-hd-4k-plus: don't use -1 as an error code
The logic at get_edid_tag_location() returns either an offset
or an error condition. However, the error condition uses a
non-standard "-1" value. This hits a Coverity bug, as Coverity
assumes that positive values are underflow. While this is a
false positive, returning error codes as -1 is an issue.
So, instead, use -ENOENT to indicate that the tag was not found.
Fixes: 056f2821b631 ("media: cec: extron-da-hd-4k-plus: add the Extron DA HD 4K Plus CEC driver")
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