Skip to content

Fixes to mlxbf-pmc

Shravan Kumar Ramani lkml platform-driver-x86 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 1 replyIn review
  2. v32 patches 1 replySuperseded
  3. v22 patches 2 repliesSuperseded

Changes in v4 from the cover letter

Patch 1: Use kstrdup_and_replace() to remove the newline char.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2platform/mellanox: mlxbf-pmc: Remove newline char from event name inputdrivers/platform/mellanox/mlxbf-pmc.c+9 -10 replies
2/2platform/mellanox: mlxbf-pmc: Validate event/enable inputdrivers/platform/mellanox/mlxbf-pmc.c+8 -71 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDavid Thompson
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/2] Fixes to mlxbf-pmc

This submission contains 2 patches:

Patch 1 fixes an issue with matching an input event_name string with the list of supported events in the event_list due to the trailing newline char.

Patch 2 adds checks to validate the input for event and enable fields, and prevents the user from writing invalid values to these fields.

v1 -> v2
Split single patch into 2 patches addressing each fix separately

v2 -> v3
Patch 1: Remove the trailing newline character before comparing strings Patch 2: Use kstrtobool() instead of kstrtouint() which would validate the input

v3 -> v4
Patch 1: Use kstrdup_and_replace() to remove the newline char.

Shravan Kumar Ramani (2):
platform/mellanox: mlxbf-pmc: Remove newline char from event name
input
platform/mellanox: mlxbf-pmc: Validate event/enable input

 drivers/platform/mellanox/mlxbf-pmc.c | 25 +++++++++++++++++--------
 1 file changed, 17 insertions(+), 8 deletions(-)
Signature · 1 line
2.43.2