diff options
author | Cristian Marussi <[email protected]> | 2022-03-30 16:05:32 +0100 |
---|---|---|
committer | Sudeep Holla <[email protected]> | 2022-04-28 10:48:21 +0100 |
commit | 8009120e0354a67068e920eb10dce532391361d0 (patch) | |
tree | 2abe3c2b4dd2d572cade2ec09055500101275a31 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 4de1b36fae866c02f264f6bcda7a9a9e00ec5306 (diff) |
firmware: arm_scmi: Fix list protocols enumeration in the base protocol
While enumerating protocols implemented by the SCMI platform using
BASE_DISCOVER_LIST_PROTOCOLS, the number of returned protocols is
currently validated in an improper way since the check employs a sum
between unsigned integers that could overflow and cause the check itself
to be silently bypassed if the returned value 'loop_num_ret' is big
enough.
Fix the validation avoiding the addition.
Link: https://lore.kernel.org/r/[email protected]
Fixes: b6f20ff8bd94 ("firmware: arm_scmi: add common infrastructure and support for base protocol")
Signed-off-by: Cristian Marussi <[email protected]>
Signed-off-by: Sudeep Holla <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions