diff options
author | 2021-04-07 15:48:31 +0200 | |
---|---|---|
committer | 2021-04-15 13:12:35 +0200 | |
commit | 999267d07240f0a9d8a85c0521b311331081b605 (patch) | |
tree | 5b23637596df283305e0e120af8c2b121eff1edd /tools/perf/scripts/python/export-to-postgresql.py | |
parent | media: venus: core: Fix kerneldoc warnings (diff) | |
download | wireguard-linux-999267d07240f0a9d8a85c0521b311331081b605.tar.xz wireguard-linux-999267d07240f0a9d8a85c0521b311331081b605.zip |
media: venus: core,pm: fix potential infinite loop
The for-loop iterates with a u8 loop counter i and compares this
with the loop upper limit of res->resets_num which is an unsigned
int type. There is a potential infinite loop if res->resets_num
is larger than the u8 loop counter i. Fix this by making the loop
counter the same type as res->resets_num.
Addresses-Coverity: ("Infinite loop")
Fixes: 3bca43585e22 ("media: venus: core,pm: Add handling for resets")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions