diff options
author | Eran Ben Elisha <eranbe@mellanox.com> | 2019-11-17 10:18:59 +0200 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2019-11-20 12:33:06 -0800 |
commit | 30e9e0550bf693c94bc15827781fe42dd60be634 (patch) | |
tree | a59558bf6690c1c85b7fe8d5a94fb300636aeb78 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | b7eca940322f47fd30dafb70da04d193a0154090 (diff) |
net/mlxfw: Verify FSM error code translation doesn't exceed array size
Array mlxfw_fsm_state_err_str contains value to string translation, when
values are provided by mlxfw_dev. If value is larger than
MLXFW_FSM_STATE_ERR_MAX, return "unknown error" as expected instead of
reading an address than exceed array size.
Fixes: 410ed13cae39 ("Add the mlxfw module for Mellanox firmware flash process")
Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions