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:28 +0000
commit0e2cebd72321caeef84b6ba7084e85be0287fb4b (patch)
tree41f85ea050c1a9099a39e9b6a6f6427eb6f4c3cb /rust/helpers/task.c
parentplatform/mellanox: mlxbf-pmc: Validate event/enable input (diff)
downloadkernel-0e2cebd72321caeef84b6ba7084e85be0287fb4b.tar.gz
kernel-0e2cebd72321caeef84b6ba7084e85be0287fb4b.zip
platform/mellanox: mlxbf-pmc: Use kstrtobool() to check 0/1 input
For setting the enable value, the input should be 0 or 1 only. Use kstrtobool() in place of kstrtoint() in mlxbf_pmc_enable_store() to accept only valid input. 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