aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/task.c
diff options
context:
space:
mode:
authorShravan Kumar Ramani <[email protected]>2025-07-02 10:09:02 +0000
committerIlpo Järvinen <[email protected]>2025-07-07 12:53:27 +0000
commitf8c1311769d3b2c82688b294b4ae03e94f1c326d (patch)
tree51702e509cb549178ce9fc8d55bac7230dc673c1 /rust/helpers/task.c
parentplatform/mellanox: mlxbf-pmc: Remove newline char from event name input (diff)
downloadkernel-f8c1311769d3b2c82688b294b4ae03e94f1c326d.tar.gz
kernel-f8c1311769d3b2c82688b294b4ae03e94f1c326d.zip
platform/mellanox: mlxbf-pmc: Validate event/enable input
Before programming the event info, validate the event number received as input by checking if it exists in the event_list. Also fix a typo in the comment for mlxbf_pmc_get_event_name() to correctly mention that it returns the event name when taking the event number as input, and not the other way round. Fixes: 423c3361855c ("platform/mellanox: mlxbf-pmc: Add support for BlueField-3") Signed-off-by: Shravan Kumar Ramani <[email protected]> Reviewed-by: David Thompson <[email protected]> Link: https://lore.kernel.org/r/2ee618c59976bcf1379d5ddce2fc60ab5014b3a9.1751380187.git.shravankr@nvidia.com [ij: split kstrbool() change to own commit.] Reviewed-by: Ilpo Järvinen <[email protected]> Signed-off-by: Ilpo Järvinen <[email protected]>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions