diff options
author | Cristian Marussi <[email protected]> | 2022-03-30 16:05:33 +0100 |
---|---|---|
committer | Sudeep Holla <[email protected]> | 2022-04-28 18:22:50 +0100 |
commit | 3b0041f6e10e5bdbb646d98172be43e88734ed62 (patch) | |
tree | f1ed3e5b8bb6ed2a17256c858387d6996b20b413 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 8009120e0354a67068e920eb10dce532391361d0 (diff) |
firmware: arm_scmi: Validate BASE_DISCOVER_LIST_PROTOCOLS response
Do not blindly trust SCMI platform response about list of implemented
protocols, instead validate the reported length of the list of protocols
against the real payload size of the message reply.
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]>
[sudeep.holla: Added early break if loop_num_ret = 0 and simplified calc_list_sz
calculation]
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