diff options
author | Shravan Kumar Ramani <[email protected]> | 2023-09-05 08:49:32 -0400 |
---|---|---|
committer | Hans de Goede <[email protected]> | 2023-09-11 13:13:24 +0200 |
commit | 80ccd40568bcd3655b0fd0be1e9b3379fd6e1056 (patch) | |
tree | 1725ddf3550a16bd69c2d282663e912087f7f579 /tools/perf/util/trace-event-scripting.c | |
parent | fc4c655821546239abb3cf4274d66b9747aa87dd (diff) |
platform/mellanox: mlxbf-pmc: Fix potential buffer overflows
Replace sprintf with sysfs_emit where possible.
Size check in mlxbf_pmc_event_list_show should account for "\0".
Fixes: 1a218d312e65 ("platform/mellanox: mlxbf-pmc: Add Mellanox BlueField PMC driver")
Signed-off-by: Shravan Kumar Ramani <[email protected]>
Reviewed-by: Vadim Pasternak <[email protected]>
Reviewed-by: David Thompson <[email protected]>
Link: https://lore.kernel.org/r/bef39ef32319a31b32f999065911f61b0d3b17c3.1693917738.git.shravankr@nvidia.com
Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions